-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (87 loc) · 2.23 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
[project]
name = "nepattern"
version = "1.0.1"
description = "a complex pattern, support typing"
authors = [
{name = "RF-Tar-Railt", email = "[email protected]"},
]
dependencies = [
"typing-extensions>=4.5.0",
"tarina<0.7,>=0.6",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
keywords = [
"typing",
"pattern",
"converter",
"validator"
]
classifiers=[
"Typing :: Typed",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]
[project.urls]
repository = "https://github.com/ArcletProject/NEPattern"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool]
[tool.pdm]
[tool.pdm.build]
includes = ["nepattern"]
[tool.pdm.dev-dependencies]
dev = [
"pytest~=7.1.3",
"coverage~=6.5.0",
"fix-future-annotations>=0.5.0",
"isort>=5.13.2",
"black>=24.4.1",
]
[tool.pdm.scripts]
test = {composite = ["coverage run --rcfile=pyproject.toml -m pytest -vv", "coverage xml", "coverage report -m"]}
[tool.coverage.run]
branch = true
source = ["."]
omit = ["test.py", "./nepattern/*.pyi", "./nepattern/func.py", "exam*.py"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# standard pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING( is True)?:",
"\\.\\.\\.",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain overload method / functions
"@(typing\\.)?overload",
"def __repr__",
"def __str__",
"def __eq__",
"except ImportError:",
]
[tool.pytest.ini_options]
python_files = "test.py"
[tool.black]
line-length = 110
target-version = ["py39", "py310", "py311", "py312"]
include = '\.pyi?$'
extend-exclude = '''
'''
[tool.isort]
profile = "black"
line_length = 110
skip_gitignore = true
force_sort_within_sections = true
extra_standard_library = ["typing_extensions"]