-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (81 loc) · 1.79 KB
/
pyproject.toml
File metadata and controls
92 lines (81 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[project]
name = "fbomatic"
description = "Trivial FBO management app"
readme = "README.md"
authors = [
{ name = "Yury V. Zaytsev", email = "yury@shurup.com" }
]
repository = "https://github.com/zyv/fbomatic"
keywords = ["aviation", "python", "django"]
license = "MIT"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"dj-database-url",
"django-bootstrap5",
"django-reversion",
"django-username-email",
"django~=5.2",
"httpx",
"psycopg[binary]",
"whitenoise[brotli]",
]
[project.optional-dependencies]
mysql = ["mysqlclient"]
gunicorn = ["gunicorn"]
[dependency-groups]
dev = [
"django-debug-toolbar",
"pytest-cov",
"pytest-django",
"pytest-env",
"respx",
"ruff",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings"
pythonpath = ["src"]
filterwarnings = [
'ignore:No directory at.*staticfiles:UserWarning',
]
[tool.pytest_env]
DJANGO_DEBUG = "1"
[tool.coverage.run]
branch = true
source = ["src"]
omit = [
"*/migrations/*",
"src/manage.py",
"src/config/asgi.py",
"src/config/wsgi.py"
]
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"E", # pycodestyle Error
"F", # Pyflakes
"I", # isort
"LOG", # flake8-logging
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"PYI", # flake8-pyi
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"T10", # flake8-debugger
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle Warning
]
ignore = [
"COM812", # comma consistency enforced by formatter
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"**/migrations/**.py" = ["RUF012"]