diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 2882809..0000000 --- a/.flake8 +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -exclude = venv,build,docs diff --git a/Makefile b/Makefile index 28272c4..63d744e 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ mypy: $(VENV) .PHONY: lint lint: $(VENV) - $(BIN)/flake8 + $(BIN)/ruff . .PHONY: build build: $(VENV) diff --git a/pyproject.toml b/pyproject.toml index 141b900..b395797 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dev = [ "wheel", "pytest", "pytest-cov", - "flake8", + "ruff", "mypy", "types-markdown", ] @@ -61,6 +61,22 @@ addopts = """ --cov-report=term-missing:skip-covered """ +[tool.ruff] +select = [ + "F", # pyflakes + "E", "W", # pycodestyle + "C90", # mccabe + "I", # isort + "D", # pydocstyle + "UP" # pyupgrade +] +line-length = 79 +src = ["blag", "tests"] +target-version = "py38" + +[tool.ruff.pydocstyle] +convention = "numpy" + [tool.mypy] files = "blag,tests" strict = true diff --git a/requirements-dev.txt b/requirements-dev.txt index c929c54..4afb1ff 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,6 +6,6 @@ twine==4.0.2 wheel==0.41.2 pytest==7.4.2 pytest-cov==4.1.0 -flake8==6.1.0 +ruff==0.0.290 mypy==1.5.1 types-markdown==3.4.2.10