Compare commits

..

No commits in common. "a64fc65815eaa1bc85ad94f9184283208b9beeca" and "2b86907c68599c78d048d210b0472a241d3317a3" have entirely different histories.

5 changed files with 62 additions and 53 deletions

View file

@ -50,7 +50,7 @@ repos:
- id: prettier
types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.3.0
rev: v9.2.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.1.2
rev: 2.0.4
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.32.0
requests==2.31.0
# via
# -r requirements.in
# django-anymail
selenium==4.21.0
selenium==4.20.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.1
trio==0.25.0
# via
# selenium
# trio-websocket

View file

@ -3,53 +3,62 @@
###############################################################################
[tool.ruff]
target-version = "py311"
src = [
"src",
]
lint.select = [
target-version = "py311"
[tool.ruff.lint]
select = [
"ALL",
]
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 = [
unfixable = [
"T20",
"RUF001",
"RUF002",
"RUF003",
"T20",
]
lint.mccabe.max-complexity = 10
lint.pydocstyle.convention = "pep257"
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
[tool.pytest.ini_options]
addopts = """

View file

@ -66,7 +66,7 @@ h11==0.14.0
# via
# -c constraints.txt
# wsproto
hypothesis==6.102.4
hypothesis==6.102.0
# 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.2
platformdirs==4.2.1
# via
# black
# virtualenv
@ -121,7 +121,7 @@ pysocks==1.7.1
# via
# -c constraints.txt
# urllib3
pytest==8.2.1
pytest==8.2.0
# 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.32.0
requests==2.31.0
# via
# -c constraints.txt
# bpython
@ -157,7 +157,7 @@ requests==2.32.0
# pytest-selenium
ruff==0.4.4
# via -r requirements-dev.in
selenium==4.21.0
selenium==4.20.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.1
trio==0.25.0
# via
# -c constraints.txt
# selenium
@ -197,7 +197,7 @@ urllib3[socks]==2.2.1
# -c constraints.txt
# requests
# selenium
virtualenv==20.26.2
virtualenv==20.26.1
# 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.32.0
requests==2.31.0
# via
# -r requirements.in
# django-anymail
selenium==4.21.0
selenium==4.20.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.1
trio==0.25.0
# via
# selenium
# trio-websocket