diff --git a/makefile b/makefile index 0259785..692f117 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ lint: @echo "--- 🧹 Running linters ---" pyproject-parser check pyproject.toml # check pyproject.toml ruff format . # running ruff formatting (.ipynb, .py) - ruff **/*.py --fix # running ruff linting (.py) + ruff check **/*.py --fix # running ruff linting (.py) test: @echo "--- 🧪 Running tests ---" diff --git a/pyproject.toml b/pyproject.toml index 1c4c38d..4f491b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,7 +92,7 @@ pythonPlatform = "Darwin" [tool.ruff] extend-include = ["*.ipynb"] # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. -select = [ +lint.select = [ "A", "ANN", "ARG", @@ -120,7 +120,7 @@ select = [ "SIM", "W", ] -ignore = [ +lint.ignore = [ "ANN101", "ANN401", "E402", @@ -130,9 +130,9 @@ ignore = [ "RET504", "COM812", ] -ignore-init-module-imports = true +lint.ignore-init-module-imports = true # Allow autofix for all enabled rules (when `--fix`) is provided. -unfixable = ["ERA"] +lint.unfixable = ["ERA"] # Exclude a variety of commonly ignored directories. exclude = [ ".bzr", @@ -158,10 +158,10 @@ exclude = [ "docs/conf.py", ] # Allow unused variables when underscore-prefixed. -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" +lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" target-version = "py38" -[tool.ruff.flake8-annotations] +[tool.ruff.lint.flake8-annotations] mypy-init-return = true suppress-none-returning = true