-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
145 lines (129 loc) · 2.91 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pyrgo"
version = "2.2.13"
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
authors = [
{ name = "Tomas Perez Alvarez", email = "[email protected]" },
]
dependencies = [
"click < 9",
"ruff >= 0.3.0, < 1",
"mypy < 2",
"pytest < 8",
"result < 1",
"build < 2",
"pip-audit < 3",
"vulture < 3",
"tomlkit < 1",
"pdoc < 15",
"mashumaro[orjson,toml] < 4",
"uv >= 0.1.5, < 1",
]
[project.optional-dependencies]
dev = ["pytest-cov < 5", "types-toml"]
[project.scripts]
pyrgo = "pyrgo.__main__:cli"
[project.urls]
Documentation = "https://github.com/Tomperez98/pyrgo#readme"
Issues = "https://github.com/Tomperez98/pyrgo/issues"
Source = "https://github.com/Tomperez98/pyrgo"
[tool.ruff]
line-length = 88
fix = false
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
logger-objects = ["pyrgo.logging.logger"]
ignore = [
"ANN101",
"D203",
"D212",
"COM812",
"COM819",
"D206",
"E501",
"ISC001",
"Q",
"W191",
"UP007",
]
select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"scripts/*.py" = ["INP001"]
"__init__.py" = ["D104"]
"tests/*.py" = ["INP001", "S101", "D"]
[tool.ruff.lint.isort]
known-first-party = ["pyrgo"]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.black]
line-length = 88
include = '\.pyi?$'
[tool.pytest.ini_options]
testpaths = ["tests"]
xfail_strict = true
addopts = [
"--import-mode=importlib",
"--strict-markers",
"--cov-report=term-missing:skip-covered",
"--cov-config=pyproject.toml",
"--cov=pyrgo",
]
markers = ["integration: mark integration tests.", "unit: mark unittest."]
[tool.coverage.run]
branch = true
parallel = true
relative_files = true
[tool.coverage.report]
precision = 1
exclude_lines = ["if TYPE_CHECKING:", "raise NotImplementedError"]
[tool.mypy]
follow_imports = "normal"
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
disallow_untyped_defs = true
explicit_package_bases = true
[tool.pyrgo]
extra-paths = ["scripts"]
extra-caches = [".coverage"]
vulture-allowlist = ".allowlist"