-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
188 lines (177 loc) · 3.11 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "anime-episode-parser"
version = "0.0.12"
description = 'A library to parse episode info from anime title'
authors = ["Trim21 <[email protected]>", "RicterZ <[email protected]>"]
readme = 'README.md'
license = 'MIT'
homepage = 'https://github.com/BGmi/anime-episode-parser'
repository = 'https://github.com/BGmi/anime-episode-parser'
keywords = ['anime']
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Other Audience',
'Natural Language :: Chinese (Traditional)',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
]
packages = [{ include = "anime_episode_parser" }]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.dev-dependencies]
# tests
coverage = { version = "==7.6.1", extras = ['toml'] }
pytest = "==8.3.3"
# lint
pre-commit = { version = "==3.8.0", python = '^3.9', markers = "implementation_name != 'pypy'" }
mypy = { version = "==1.11.2", python = '^3.9', markers = "implementation_name != 'pypy'" }
ruff = "0.6.8"
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'if TYPE_CHECKING:',
'if __name__ "__main__":',
'if typing.TYPE_CHECKING:',
'raise NotImplementedError'
]
[tool.isort]
default_section = 'THIRDPARTY'
indent = ' '
known_first_party = 'anime_episode_parser'
length_sort = true
line_length = 88
multi_line_output = 3
no_lines_before = 'LOCALFOLDER'
use_parentheses = true
include_trailing_comma = true
[tool.pytest.ini_options]
addopts = '-rqa'
junit_family = 'legacy'
[tool.mypy]
disallow_untyped_defs = true
warn_return_any = true
warn_unused_configs = true
show_error_codes = true
pretty = true
[tool.ruff]
select = [
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"W",
"BLE",
# "DJ",
"ERA",
"EXE",
"ICN",
"INP",
"ISC",
"NPY",
# "DTZ",
# "PTH",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"YTT",
]
ignore = [
'PLR0911',
'INP001',
'N806',
'N802',
'N803',
'E501',
'BLE001',
'RUF002',
'S301',
'S314',
'S101',
'N815',
'S104',
'C901',
'ISC003',
'PLR0913',
'I001',
'RUF001',
'SIM108',
'TCH003',
'RUF003',
'RET504',
'TRY300',
'TRY003',
'TRY201',
'TRY301',
'PLR0912',
'PLR0915',
'PLR2004',
'PGH003',
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"A",
"B",
"C",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"W",
"BLE",
"DJ",
"DTZ",
"EM",
"ERA",
"EXE",
"FBT",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"YTT",
]
target-version = "py310"