mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-24 00:58:04 +01:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
ebb8594cf3
commit
9578cbf522
1 changed files with 8 additions and 14 deletions
|
@ -3,10 +3,10 @@
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
|
target-version = "py311"
|
||||||
src = [
|
src = [
|
||||||
"src",
|
"src",
|
||||||
]
|
]
|
||||||
target-version = "py311"
|
|
||||||
select = [
|
select = [
|
||||||
"ALL",
|
"ALL",
|
||||||
]
|
]
|
||||||
|
@ -28,8 +28,8 @@ ignore = [
|
||||||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
pydocstyle.convention = "pep257"
|
||||||
"**/tests/*" = [
|
per-file-ignores."**/tests/*" = [
|
||||||
"S101", # Use of assert detected.
|
"S101", # Use of assert detected.
|
||||||
"S105", # Possible hardcoded password.
|
"S105", # Possible hardcoded password.
|
||||||
"B011", # Do not call assert False since python -O removes these calls.
|
"B011", # Do not call assert False since python -O removes these calls.
|
||||||
|
@ -38,25 +38,19 @@ ignore = [
|
||||||
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
|
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
|
||||||
]
|
]
|
||||||
# File {name} is part of an implicit namespace package. Add an `__init__.py`.
|
# File {name} is part of an implicit namespace package. Add an `__init__.py`.
|
||||||
"tasks.py" = [
|
per-file-ignores."tasks.py" = [
|
||||||
"INP001",
|
"INP001",
|
||||||
]
|
]
|
||||||
"src/conftest.py" = [
|
per-file-ignores."src/conftest.py" = [
|
||||||
"INP001",
|
"INP001",
|
||||||
]
|
]
|
||||||
"src/manage.py" = [
|
per-file-ignores."src/manage.py" = [
|
||||||
"INP001",
|
"INP001",
|
||||||
]
|
]
|
||||||
|
per-file-ignores."src/purchase/management/commands/generate_dummy_baskets.py" = [
|
||||||
"src/purchase/management/commands/generate_dummy_baskets.py" = [
|
|
||||||
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
|
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
|
||||||
]
|
]
|
||||||
|
mccabe.max-complexity = 10
|
||||||
[tool.ruff.pydocstyle]
|
|
||||||
convention = "pep257"
|
|
||||||
|
|
||||||
[tool.ruff.mccabe]
|
|
||||||
max-complexity = 10
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--color=yes --driver Firefox"
|
addopts = "--color=yes --driver Firefox"
|
||||||
|
|
Loading…
Reference in a new issue