-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (51 loc) · 1.41 KB
/
pyproject.toml
File metadata and controls
62 lines (51 loc) · 1.41 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
[build-system]
requires = ["flit_core >=2,<3"]
build-backend = "flit_core.buildapi"
[tool.flit.metadata]
module = "declared_env"
author = "Andrey Solomatin"
author-email = "cjkjvfnby@gmail.com"
home-page = "https://github.com/Cjkjvfnby/declared_env"
requires-python = ">=3.9"
[tool.pytest.ini_options]
addopts = [
"--doctest-modules",
"--doctest-continue-on-failure",
"--showlocals",
]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN204", "ANN401",
"D104", # no docstring in public package
"D200", # One-line docstring should fit on one line with quotes
"D212", # Start first line of docstring on the line with quotes
"RSE102", # Remove parenthesis after raise Exception
"D203",
"FLY002", # fix produces invalid code https://github.com/astral-sh/ruff/issues/5150
"G004", # logging with f string is ok
"COM812",
"ISC001",
"D107", "D105", # docstring for magic method
"LOG015",
]
line-length = 98
target-version = "py39"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"test/*" = ["D10", "D101", "D103", "S101", "ANN", "PLR2004"]
"./declared_env/_exceptions.py" = ["D107"]
"declared_env/_declared_variables.py" = ["FBT001", "FBT002"]
[tool.ruff.lint.mccabe]
max-complexity = 5
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
[tool.ruff.format]
line-ending = "native"
[tool.mypy]
check_untyped_defs = true
exclude = [
'^test.*'
]