-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (79 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
88 lines (79 loc) · 1.69 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
[project]
authors = [
{name = "David Svenson", email = "davidsvenson@outlook.com"},
{name = "Emil Björkroth", email = "emil.bjorkroth@gmail.com"},
]
dependencies = [
"flask>=3.1.2",
"flask-sqlalchemy>=3.1.1",
"gunicorn",
"htpy",
"markupsafe>=3.0.2",
"sentry-sdk[flask]",
]
dynamic = ["version", "description"]
name = "dax"
requires-python = ">=3.13"
[build-system]
build-backend = "pdm.backend"
requires = ["pdm-backend"]
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
includes = [
"dax",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"ERA001", # commented-out-code
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"T20", # flake8-print
"PYI024", # flake8-pyi collections-named-tuple
"TID", # flake8-tidy-imports
"TD", # flake8-todos
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"SIM", # flake8-simplify
"FLY", # flynt
"I", # isort
"PERF", # perflint
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"UP", # pyupgrade
"RUF100", # yesqa equivalence
]
[tool.ruff.lint.isort]
combine-as-imports = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.mypy]
disallow_incomplete_defs = true
disallow_untyped_calls = true
enable_error_code = ["truthy-bool"]
files = ["dax"]
implicit_reexport = false
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
[dependency-groups]
dev = [
"mypy",
"pytest",
"time-machine>=2.19.0",
]