Compare commits

...

3 commits

Author SHA1 Message Date
pre-commit-ci[bot]
a64fc65815 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-20 21:58:18 +00:00
pre-commit-ci[bot]
60679ff959 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-eslint: v9.2.0 → v9.3.0](https://github.com/pre-commit/mirrors-eslint/compare/v9.2.0...v9.3.0)
- [github.com/tox-dev/pyproject-fmt: 2.0.4 → 2.1.2](https://github.com/tox-dev/pyproject-fmt/compare/2.0.4...2.1.2)
2024-05-20 21:58:18 +00:00
Crocmagnon
fbe583787b Update dependencies 2024-05-20 18:10:10 +00:00
5 changed files with 53 additions and 62 deletions

View file

@ -50,7 +50,7 @@ repos:
- id: prettier
types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.2.0
rev: v9.3.0
hooks:
- id: eslint
args: [--fix]
@ -59,7 +59,7 @@ repos:
- eslint@8.36.0
- eslint-config-prettier@8.5.0
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.0.4
rev: 2.1.2
hooks:
- id: pyproject-fmt
- repo: https://github.com/jazzband/pip-tools

View file

@ -63,11 +63,11 @@ pillow==10.3.0
# via -r requirements.in
pysocks==1.7.1
# via urllib3
requests==2.31.0
requests==2.32.0
# via
# -r requirements.in
# django-anymail
selenium==4.20.0
selenium==4.21.0
# via -r requirements.in
sniffio==1.3.1
# via trio
@ -75,7 +75,7 @@ sortedcontainers==2.4.0
# via trio
sqlparse==0.5.0
# via django
trio==0.25.0
trio==0.25.1
# via
# selenium
# trio-websocket

View file

@ -3,62 +3,53 @@
###############################################################################
[tool.ruff]
target-version = "py311"
src = [
"src",
]
target-version = "py311"
[tool.ruff.lint]
select = [
lint.select = [
"ALL",
]
unfixable = [
"T20",
lint.ignore = [
"ANN", # flake8-annotations
"BLE", # flake8-blind-except
"D1", # missing docstring
"E501", # long lines
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"TCH", # flake8-type-checking / TODO: revisit later ?
"TRY003", # Avoid specifying long messages outside the exception class
]
lint.per-file-ignores."**/tests/*" = [
"ARG001", # Unused function argument (mostly fixtures)
"B011", # Do not call assert False since python -O removes these calls.
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"S101", # Use of assert detected.
"S106", # Possible hardcoded password.
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
]
lint.per-file-ignores."src/character/management/commands/*" = [
"RUF001", # String contains ambiguous unicode character
]
lint.per-file-ignores."src/conftest.py" = [
"INP001",
]
lint.per-file-ignores."src/manage.py" = [
"INP001",
]
# File {name} is part of an implicit namespace package. Add an `__init__.py`.
lint.per-file-ignores."tasks.py" = [
"INP001",
]
lint.unfixable = [
"RUF001",
"RUF002",
"RUF003",
"T20",
]
ignore = [
"ANN", # flake8-annotations
"BLE", # flake8-blind-except
"TCH", # flake8-type-checking / TODO: revisit later ?
"E501", # long lines
"D1", # missing docstring
"TRY003", # Avoid specifying long messages outside the exception class
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = [
"S101", # Use of assert detected.
"S106", # Possible hardcoded password.
"B011", # Do not call assert False since python -O removes these calls.
"ARG001", # Unused function argument (mostly fixtures)
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes.
]
# File {name} is part of an implicit namespace package. Add an `__init__.py`.
"tasks.py" = [
"INP001",
]
"src/conftest.py" = [
"INP001",
]
"src/manage.py" = [
"INP001",
]
"src/character/management/commands/*" = [
"RUF001", # String contains ambiguous unicode character
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.mccabe]
max-complexity = 10
lint.mccabe.max-complexity = 10
lint.pydocstyle.convention = "pep257"
[tool.pytest.ini_options]
addopts = """

View file

@ -66,7 +66,7 @@ h11==0.14.0
# via
# -c constraints.txt
# wsproto
hypothesis==6.102.0
hypothesis==6.102.4
# via -r requirements-dev.in
identify==2.5.36
# via pre-commit
@ -103,7 +103,7 @@ pathspec==0.12.1
# via black
pip-tools==7.4.1
# via -r requirements-dev.in
platformdirs==4.2.1
platformdirs==4.2.2
# via
# black
# virtualenv
@ -121,7 +121,7 @@ pysocks==1.7.1
# via
# -c constraints.txt
# urllib3
pytest==8.2.0
pytest==8.2.1
# via
# -r requirements-dev.in
# pytest-base-url
@ -149,7 +149,7 @@ pyxdg==0.28
# via bpython
pyyaml==6.0.1
# via pre-commit
requests==2.31.0
requests==2.32.0
# via
# -c constraints.txt
# bpython
@ -157,7 +157,7 @@ requests==2.31.0
# pytest-selenium
ruff==0.4.4
# via -r requirements-dev.in
selenium==4.20.0
selenium==4.21.0
# via
# -c constraints.txt
# pytest-selenium
@ -179,7 +179,7 @@ sqlparse==0.5.0
# django-debug-toolbar
tenacity==8.3.0
# via pytest-selenium
trio==0.25.0
trio==0.25.1
# via
# -c constraints.txt
# selenium
@ -197,7 +197,7 @@ urllib3[socks]==2.2.1
# -c constraints.txt
# requests
# selenium
virtualenv==20.26.1
virtualenv==20.26.2
# via pre-commit
wcwidth==0.2.13
# via blessed

View file

@ -63,11 +63,11 @@ pillow==10.3.0
# via -r requirements.in
pysocks==1.7.1
# via urllib3
requests==2.31.0
requests==2.32.0
# via
# -r requirements.in
# django-anymail
selenium==4.20.0
selenium==4.21.0
# via -r requirements.in
sniffio==1.3.1
# via trio
@ -75,7 +75,7 @@ sortedcontainers==2.4.0
# via trio
sqlparse==0.5.0
# via django
trio==0.25.0
trio==0.25.1
# via
# selenium
# trio-websocket