diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index f70520d..4fc4404 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -10,4 +10,5 @@ jobs: uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v2.4.0 with: mypy: true - pydocstyle: false \ No newline at end of file + ruff: true + black: true \ No newline at end of file diff --git a/Pipfile b/Pipfile index b8d82e6..2ba7864 100644 --- a/Pipfile +++ b/Pipfile @@ -10,7 +10,7 @@ towncrier = "==23.6.0" pytest = "==7.4.2" pytest-cov = "==4.1.0" coverage = "==7.3.2" -black = {version = "==23.9.1", markers="python_version >= '3.8'"} -pycodestyle = "==2.11.0" +black = "==23.9.1" mypy = "==1.5.1" tbump = "==6.11.0" +ruff = "==0.0.292" diff --git a/pyproject.toml b/pyproject.toml index 418894c..a0fdd0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,6 +90,15 @@ line-length = 80 target-version = ['py38'] include = '.*\.pyi?$' +[tool.ruff] +line-length = 80 +select = [ + "E", # pycodestyle + "F", # pyflakes + "I", # isort + "D", # pydocstyle +] + [tool.tbump] # Uncomment this if your project is hosted on GitHub: diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2627357..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[pycodestyle] -max-line-length = 80 -exclude = docs/*,build/*,venv/*