-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (75 loc) · 1.63 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[project]
name = "bot"
dynamic = ["version", "readme"]
requires-python = ">=3.10"
dependencies = [
"click==8.1.8",
"GitPython==3.1.44",
"PyGithub==2.5.0",
]
[project.optional-dependencies]
dist = [
"build==1.2.2.post1",
]
style = [
"autoflake==2.3.1",
"black==24.10.0",
"flake8==7.1.1",
"flake8-isort==6.1.1",
"flake8-print==5.0.0",
"flake8-pyproject==1.2.3",
"isort[colors]==5.13.2",
]
test = [
"pytest==8.3.4",
"httpx==0.28.1"
]
types = [
"mypy==1.14.1",
"types-requests==2.32.0.20241016",
]
[project.scripts]
read-commit = "bot.cli:read"
write-commit = "bot.cli:write"
[build-system]
requires = [
"setuptools==75.8.0",
"wheel==0.45.1",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = { file = ".version" }
readme = { file = "README.md", content-type = "text/markdown" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["*tests*"]
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.black]
line-length = 88
[tool.flake8]
exclude = ".venv"
max-line-length = 88
[tool.isort]
profile = "black"
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
pretty = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
exclude = "generated"
[tool.pytest.ini_options]
addopts = "--import-mode=importlib"