-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (74 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
92 lines (74 loc) · 1.65 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
# We do our best to sync this template with the latest version in our internal documentation.
# For MIT developers, we strongly recommend copying the pyproject.toml template from:
# https://mitlibraries.atlassian.net/wiki/spaces/IN/pages/3432415247/Python+Project+Linters#Template-for-pyproject.toml
[project]
name = "my-app"
version = "2.0.0"
requires-python = ">=3.12"
dependencies = [
"click>=8.2.1",
"sentry-sdk>=2.34.1",
]
[dependency-groups]
dev = [
"black>=25.1.0",
"coveralls>=4.0.1",
"mypy>=1.17.1",
"pip-audit>=2.9.0",
"pre-commit>=4.3.0",
"pytest>=8.4.1",
"ruff>=0.12.8",
]
[tool.black]
line-length = 90
[tool.mypy]
disallow_untyped_calls = true
disallow_untyped_defs = true
exclude = ["tests/"]
[tool.pytest.ini_options]
log_level = "INFO"
[tool.ruff]
target-version = "py312"
# set max line length
line-length = 90
# enumerate all fixed violations
show-fixes = true
[tool.ruff.lint]
select = ["ALL", "PT"]
ignore = [
"COM812",
"D107",
"N812",
"PTH",
"C90",
"D100",
"D101",
"D102",
"D103",
"D104",
"PLR0912",
"PLR0913",
"PLR0915",
"S321",
]
# allow autofix behavior for specified rules
fixable = ["E", "F", "I", "Q"]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
"ANN",
"ARG001",
"S101",
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 90
[tool.ruff.lint.pydocstyle]
convention = "google"
[project.scripts]
my-app = "my_app.cli:main"
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"