-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathpyproject.toml
54 lines (49 loc) · 1.15 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
[build-system]
requires = ["setuptools>=71", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "currency_converter/_version.py"
write_to_template = "__version__ = \"{version}\"\n"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--strict-markers --doctest-modules --doctest-glob='*.rst' --ignore=setup.py"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ELLIPSIS",
]
norecursedirs = [
".*",
"__pycache__",
"build",
"dist",
"*.egg-info",
"htmlcov",
"doc",
]
filterwarnings = []
[tool.ruff]
line-length = 100
target-version = "py39"
extend-exclude = ["doc"]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"YTT", # flake8-2020
"B", # flake8-bugbear
"T10", # flake8-debugger
"C4", # flake8-comprehensions
"G", # flake8-logging-format
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
]
ignore = [
"E402", # module-import-not-at-top-of-file
]
[tool.black]
line-length = 88
target-version = ["py39"]
extend-exclude = "doc"