-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (87 loc) · 2.06 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (87 loc) · 2.06 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "oeis_validator"
version = "0.1.1"
description = "Validate OEIS draft entries against the internal format specification and style sheet"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Dar\u00edo Clavijo", email = "clavijodario@gmail.com"}
]
dependencies = []
[project.optional-dependencies]
dev = [
"ruff",
"mypy",
"hatch",
"pip-api",
]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-asyncio",
"hypothesis",
]
lint = [
"prospector[with_ruff,with_mypy]",
"semgrep",
"vulture",
]
[project.scripts]
oeis-validator = "oeis_validator.__main__:main"
[project.urls]
Homepage = "https://github.com/daedalus/oeis_validator"
Repository = "https://github.com/daedalus/oeis_validator"
Issues = "https://github.com/daedalus/oeis_validator/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/oeis_validator"]
[tool.hatch.build.targets.sdist]
include = ["src/oeis_validator"]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "ANN", "TCH", "N", "C4", "ARG"]
ignore = ["E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["ANN"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
[tool.prospector]
output-format = "text"
strictness = "medium"
test-warnings = false
[tool.prospector.tools]
ruff = true
mypy = true
pylint = true
pyflakes = false
pycodestyle = false
mccabe = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short --cov=src --cov-fail-under=80"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
omit = ["tests/*", "*/__init__.py"]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]