Use ruff for formatting/linting
This commit is contained in:
parent
bb74e875e0
commit
57375591b5
36 changed files with 241 additions and 245 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue