зеркало из https://github.com/mozilla/bedrock.git
Bump ruff and update config for v0.2+ (#14175)
This commit is contained in:
Родитель
72bc0add9d
Коммит
aaaca6af7d
|
@ -65,7 +65,7 @@ repos:
|
||||||
- --comment-style
|
- --comment-style
|
||||||
- "|#|"
|
- "|#|"
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.1.15
|
rev: v0.2.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
|
line-length = 150
|
||||||
|
target-version = 'py39'
|
||||||
|
extend-exclude = ["docs", "assets", "static", "bedrock/externalfiles/files_cache"]
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
# Set what ruff should check for.
|
# Set what ruff should check for.
|
||||||
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
|
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
|
||||||
select = [
|
select = [
|
||||||
|
@ -13,18 +18,15 @@ select = [
|
||||||
"Q", # flake8-quotes errors
|
"Q", # flake8-quotes errors
|
||||||
"W", # pycodestyle warnings
|
"W", # pycodestyle warnings
|
||||||
]
|
]
|
||||||
line-length = 150 # To match flake8
|
|
||||||
target-version = 'py39'
|
|
||||||
extend-exclude = ["__pycache__", "docs", "assets", "static", "bedrock/externalfiles/files_cache"]
|
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"bedrock/settings/__init__.py" = ["F405"]
|
"bedrock/settings/__init__.py" = ["F405"]
|
||||||
"bedrock/contentful/tests/data.py" = ["E501"]
|
"bedrock/contentful/tests/data.py" = ["E501"]
|
||||||
|
|
||||||
[tool.ruff.isort]
|
[tool.ruff.lint.isort]
|
||||||
known-first-party = ["bedrock", "lib", "pages"]
|
known-first-party = ["bedrock", "lib", "pages"]
|
||||||
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
|
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
|
||||||
combine-as-imports = true
|
combine-as-imports = true
|
||||||
|
|
||||||
[tool.ruff.isort.sections]
|
[tool.ruff.lint.isort.sections]
|
||||||
django = ["django"]
|
django = ["django"]
|
||||||
|
|
|
@ -18,7 +18,7 @@ pytest-parallel==0.1.1
|
||||||
pytest-rerunfailures==13.0
|
pytest-rerunfailures==13.0
|
||||||
pytest-selenium==4.0.1
|
pytest-selenium==4.0.1
|
||||||
responses==0.24.1
|
responses==0.24.1
|
||||||
ruff==0.1.14
|
ruff==0.2.1
|
||||||
selenium==4.9.1 # Pinned to 4.9.1 until https://github.com/pytest-dev/pytest-selenium/issues/315 is resolved
|
selenium==4.9.1 # Pinned to 4.9.1 until https://github.com/pytest-dev/pytest-selenium/issues/315 is resolved
|
||||||
translate-toolkit==3.12.1
|
translate-toolkit==3.12.1
|
||||||
# Related to moz-l10n-lint, used in CI
|
# Related to moz-l10n-lint, used in CI
|
||||||
|
|
|
@ -1425,24 +1425,24 @@ rpds-py==0.17.1 \
|
||||||
# -r requirements/prod.txt
|
# -r requirements/prod.txt
|
||||||
# jsonschema
|
# jsonschema
|
||||||
# referencing
|
# referencing
|
||||||
ruff==0.1.14 \
|
ruff==0.2.1 \
|
||||||
--hash=sha256:1c8eca1a47b4150dc0fbec7fe68fc91c695aed798532a18dbb1424e61e9b721f \
|
--hash=sha256:0034d5b6323e6e8fe91b2a1e55b02d92d0b582d2953a2b37a67a2d7dedbb7acc \
|
||||||
--hash=sha256:2270504d629a0b064247983cbc495bed277f372fb9eaba41e5cf51f7ba705a6a \
|
--hash=sha256:00a818e2db63659570403e44383ab03c529c2b9678ba4ba6c105af7854008105 \
|
||||||
--hash=sha256:269302b31ade4cde6cf6f9dd58ea593773a37ed3f7b97e793c8594b262466b67 \
|
--hash=sha256:0a725823cb2a3f08ee743a534cb6935727d9e47409e4ad72c10a3faf042ad5ba \
|
||||||
--hash=sha256:62ce2ae46303ee896fc6811f63d6dabf8d9c389da0f3e3f2bce8bc7f15ef5488 \
|
--hash=sha256:13471684694d41ae0f1e8e3a7497e14cd57ccb7dd72ae08d56a159d6c9c3e30e \
|
||||||
--hash=sha256:653230dd00aaf449eb5ff25d10a6e03bc3006813e2cb99799e568f55482e5cae \
|
--hash=sha256:3b42b5d8677cd0c72b99fcaf068ffc62abb5a19e71b4a3b9cfa50658a0af02f1 \
|
||||||
--hash=sha256:6b3dadc9522d0eccc060699a9816e8127b27addbb4697fc0c08611e4e6aeb8b5 \
|
--hash=sha256:6b95ac9ce49b4fb390634d46d6ece32ace3acdd52814671ccaf20b7f60adb232 \
|
||||||
--hash=sha256:7060156ecc572b8f984fd20fd8b0fcb692dd5d837b7606e968334ab7ff0090ab \
|
--hash=sha256:7022d66366d6fded4ba3889f73cd791c2d5621b2ccf34befc752cb0df70f5fad \
|
||||||
--hash=sha256:722bafc299145575a63bbd6b5069cb643eaa62546a5b6398f82b3e4403329cab \
|
--hash=sha256:a11567e20ea39d1f51aebd778685582d4c56ccb082c1161ffc10f79bebe6df35 \
|
||||||
--hash=sha256:80258bb3b8909b1700610dfabef7876423eed1bc930fe177c71c414921898efa \
|
--hash=sha256:be60592f9d218b52f03384d1325efa9d3b41e4c4d55ea022cd548547cc42cd2b \
|
||||||
--hash=sha256:87b3acc6c4e6928459ba9eb7459dd4f0c4bf266a053c863d72a44c33246bfdbf \
|
--hash=sha256:c92db7101ef5bfc18e96777ed7bc7c822d545fa5977e90a585accac43d22f18a \
|
||||||
--hash=sha256:96f76536df9b26622755c12ed8680f159817be2f725c17ed9305b472a757cdbb \
|
--hash=sha256:dc586724a95b7d980aa17f671e173df00f0a2eef23f8babbeee663229a938fec \
|
||||||
--hash=sha256:a53d8e35313d7b67eb3db15a66c08434809107659226a90dcd7acb2afa55faea \
|
--hash=sha256:dd81b911d28925e7e8b323e8d06951554655021df8dd4ac3045d7212ac4ba080 \
|
||||||
--hash=sha256:ab3f71f64498c7241123bb5a768544cf42821d2a537f894b22457a543d3ca7a9 \
|
--hash=sha256:e3affdcbc2afb6f5bd0eb3130139ceedc5e3f28d206fe49f63073cb9e65988e0 \
|
||||||
--hash=sha256:ad3f8088b2dfd884820289a06ab718cde7d38b94972212cc4ba90d5fbc9955f3 \
|
--hash=sha256:e5cb5526d69bb9143c2e4d2a115d08ffca3d8e0fddc84925a7b54931c96f5c02 \
|
||||||
--hash=sha256:b2027dde79d217b211d725fc833e8965dc90a16d0d3213f1298f97465956661b \
|
--hash=sha256:efababa8e12330aa94a53e90a81eb6e2d55f348bc2e71adbf17d9cad23c03ee6 \
|
||||||
--hash=sha256:bea9be712b8f5b4ebed40e1949379cfb2a7d907f42921cf9ab3aae07e6fba9eb \
|
--hash=sha256:f3ef052283da7dec1987bba8d8733051c2325654641dfe5877a4022108098683 \
|
||||||
--hash=sha256:e3d241aa61f92b0805a7082bd89a9990826448e4d0398f0e2bc8f05c75c63d99
|
--hash=sha256:fbd2288890b88e8aab4499e55148805b58ec711053588cc2f0196a44f6e3d855
|
||||||
# via -r requirements/dev.in
|
# via -r requirements/dev.in
|
||||||
s3transfer==0.10.0 \
|
s3transfer==0.10.0 \
|
||||||
--hash=sha256:3cdb40f5cfa6966e812209d0994f2a4709b561c88e90cf00c2696d2df4e56b2e \
|
--hash=sha256:3cdb40f5cfa6966e812209d0994f2a4709b561c88e90cf00c2696d2df4e56b2e \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче