-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
159 lines (138 loc) · 2.34 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pyproject-version-sync"
version = "0.2.1"
description = "Pre-commit hook to align the pyproject.toml version to the latest tag in the repo."
authors = [
"Eshwen Bhal, PhD <milanman.eshb@gmail.com>"
]
readme = "README.md"
[tool.poetry.scripts]
sync_pyproject_version = "pyproject_version_sync.sync_pyproject_version:main"
[tool.poetry.dependencies]
python = "^3.10"
tomli = "~2.0.1"
[tool.poetry.group.dev.dependencies]
black = "~24.3.0"
mypy = "~1.6.1"
ruff = "~0.1.2"
pre-commit = "~3.5.0"
[tool.black]
target-version = ['py310']
line-length = 120
[tool.ruff]
line-length = 120
select = [
"I",
"D",
"E",
"F",
"W",
"C90",
"N",
"UP",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"T10",
"EM",
"EXE",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PT",
"Q",
"RET",
"SIM",
"TID",
"ARG",
"PTH",
"ERA",
"PD",
"PGH",
"PL",
"PLC",
"PLE",
"PLR",
"PLW",
"TRY",
"RUF"
]
ignore = [
"E999",
"D301",
"D212",
"D107",
"D407",
"D203",
"PGH003",
"A003",
"N805",
"ARG002",
"PD901",
"ARG001",
"G004",
"EM101",
"TRY003",
"EM102",
"B008",
"FBT002",
"FBT001"
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"venv",
"node_modules",
".git",
"__pycache__",
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "D104"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.10"
pretty = true
show_traceback = true
color_output = true
allow_redefinition = false
check_untyped_defs = true
disallow_any_generics = true
allow_untyped_defs = false
allow_incomplete_defs = false
ignore_missing_imports = true
disable_error_code = "type-arg"
implicit_reexport = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = false
warn_no_return = true
warn_redundant_casts = true
warn_return_any = false
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true