diff --git a/pyproject.toml b/pyproject.toml index 66dded8d..dc54b2fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,19 +81,17 @@ readme = {file = ["README.rst", "CHANGELOG.rst"]} version = {attr = "storages.__version__"} [tool.ruff] -select = [ +lint.select = [ "AIR", # Airflow "ASYNC", # flake8-async "B", # flake8-bugbear "C4", # flake8-comprehensions "C90", # McCabe cyclomatic complexity - "CPY", # flake8-copyright "DJ", # flake8-django "E", # pycodestyle "EXE", # flake8-executable "F", # Pyflakes "FLY", # flynt - "FURB", # refurb "G", # flake8-logging-format "I", # isort "ICN", # flake8-import-conventions @@ -140,21 +138,21 @@ select = [ # "TRY", # tryceratops # "UP", # pyupgrade ] -ignore = [ +lint.ignore = [ "B028", "B904", "PGH004", ] target-version = "py37" -[tool.ruff.isort] +[tool.ruff.lint.isort] force-single-line = true known-first-party = ["storages"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "docs/conf.py" = ["E402", "INP001"] "storages/backends/ftp.py" = ["PERF203"] "tests/test_s3.py" = ["B018"] -[tool.ruff.pylint] +[tool.ruff.lint.pylint] allow-magic-value-types = ["int", "str"] diff --git a/tox.ini b/tox.ini index c9bedf20..9319c3e7 100644 --- a/tox.ini +++ b/tox.ini @@ -41,7 +41,7 @@ deps = black ruff commands = - ruff . + ruff check . black --check . skip_install = true