-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
94 lines (81 loc) · 1.52 KB
/
pyproject.toml
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
93
94
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "paikkala"
dynamic = ["version"]
description = "Paikkavarauskala"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Aarni Koskela", email = "akx@iki.fi" },
]
dependencies = [
"Django>=4.2",
]
[project.optional-dependencies]
printing = [
"reportlab >= 3.0",
]
dev = [
"pytest",
"pytest-cov",
"pytest-django~=4.5",
]
[project.urls]
Homepage = "https://github.com/kcsry/paikkala"
[tool.hatch.version]
path = "paikkala/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/paikkala",
]
[[tool.mypy.overrides]]
module = "django.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "reportlab.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "baikal.settings"
norecursedirs = [".git", "venv*", "site-packages"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "ALLOW_UNICODE"]
filterwarnings = ["ignore:.*default_app_config.*"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
exclude = [
"migrations",
"tests",
]
ignore = [
"ANN101",
"ANN401",
]
select = [
"ANN",
"C9",
"E",
"F",
"W",
"I",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"*/views.py" = [
"ANN001",
"ANN002",
"ANN003",
"ANN201",
]
"paikkala_tests/*.py" = [
"ANN",
]
"*/migrations/*.py" = [
"ANN",
"E501",
]
[tool.ruff.format]
quote-style = "preserve"