-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (55 loc) · 1.18 KB
/
Copy pathpyproject.toml
File metadata and controls
64 lines (55 loc) · 1.18 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
[project]
name = "beatified"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
]
[dependency-groups]
dev = [
"pre-commit>=4.5.1",
"black>=25.12.0",
"mypy>=1.19.1",
"ruff>=0.14.10",
"python-dotenv>=1.2.1",
"pytest>=9.0.2",
]
[tool.mypy]
exclude = '.*models/metrics.*|\.git|\.venv'
ignore_missing_imports = true
check_untyped_defs = true
[tool.ruff]
target-version = "py313"
line-length = 140
lint.extend-select = ["I", "ARG"] # enable import sorting check (isort equivalent) and unused arguments
lint.ignore = [
"E501", # optionally ignore line length if Black handles it
"F401",
"F403"
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "ARG001", "ARG002", "ARG005"]
[tool.ruff.format]
# Don't let ruff format files - Black will handle it.
exclude = ["*"]
[tool.black]
line-length = 140
target-version = ['py313']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''