Update uv and ruff configuration
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/tests Pipeline failed

This commit is contained in:
Sonny Bakker 2025-03-23 15:12:07 +01:00
parent aff565862c
commit 3281b70bbe
5 changed files with 52 additions and 95 deletions

View file

@ -1,8 +1,8 @@
[project]
name = 'newsreader'
version = '0.5.3'
authors = [{name = 'Sonny', email= 'sonnyba871@gmail.com'}]
license = {text = 'GPL-3.0'}
authors = [ { name = 'Sonny', email= 'sonny871@hotmail.com' } ]
license = { text = 'GPL-3.0' }
requires-python = '>=3.11'
dependencies = [
'django~=4.2',
@ -24,35 +24,45 @@ dependencies = [
'lxml',
]
[project.optional-dependencies]
testing = [
'factory-boy',
'freezegun',
'tblib',
"ruff>=0.6.3",
]
[dependency-groups]
test-tools = [ 'ruff' ]
development = [
'django-debug-toolbar',
'django-stubs',
'django-extensions',
]
ci = ['coverage~=7.6.1']
production = ['gunicorn~=23.0', 'sentry-sdk~=2.0']
ci = [ 'coverage~=7.6.1' ]
production = [ 'gunicorn~=23.0' ]
[project.optional-dependencies]
sentry = [ 'sentry-sdk~=2.0' ]
[tool.uv]
environments = ["sys_platform == 'linux'"]
environments = [ "sys_platform == 'linux'" ]
default-groups = [ 'test-tools' ]
[tool.ruff]
include = ['pyproject.toml', 'src/**/*.py']
include = [ 'pyproject.toml', 'src/**/*.py' ]
line-length = 88
[tool.ruff.lint.isort]
default-section = 'third-party'
known-first-party = ['newsreader']
[tool.ruff.lint]
select = [ "E4", "E7", "E9", "F", "I" ]
[tool.ruff.lint.isort]
lines-between-types=1
lines-after-imports=2
default-section = 'third-party'
known-first-party = [ 'transip_client' ]
section-order = [
'future',
'standard-library',
'django',
'third-party',
'first-party',
'local-folder',
]
[tool.ruff.lint.isort.sections]
django = ['django']
django = [ 'django' ]