Use ruff for formatting/linting

This commit is contained in:
Sonny Bakker 2024-09-05 06:58:35 +02:00
parent bb74e875e0
commit 57375591b5
36 changed files with 241 additions and 245 deletions

View file

@ -29,20 +29,30 @@ dependencies = [
testing = [
'factory-boy',
'freezegun',
'black',
'isort',
'autoflake',
'tblib',
"ruff>=0.6.3",
]
development = [
'django-debug-toolbar',
'django-extensions',
]
ci = ['coverage>=5.3.1']
production = ['gunicorn~=20.0', 'sentry-sdk~=1.0']
[tool.uv]
environments = ["sys_platform == 'linux'"]
[tool.ruff]
include = ['pyproject.toml', 'src/**/*.py']
line-length = 88
[tool.ruff.lint.isort]
default-section = 'third-party'
known-first-party = ['newsreader']
lines-between-types=1
lines-after-imports=2
[tool.ruff.lint.isort.sections]
django = ['django']