-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
111 lines (98 loc) · 2.2 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
[build-system]
requires = ["pdm-backend~=2.0.6"]
build-backend = "pdm.backend"
[project]
name = "pdm_copier"
dynamic = ["version"]
description = "A python project template"
authors = [
{ name = "Yann de Thé", email = "yann@johncloud.fr" },
]
dependencies = [
"git-changelog>=1.0",
]
requires-python = ">=3.8"
[project.urls]
"Bug Tracker" = "https://gitlab.com/ydethe/pdm-copier/issues"
Homepage = "https://gitlab.com/ydethe/pdm-copier"
Source = "https://gitlab.com/ydethe/pdm-copier"
[tool.pylint.main]
ignore-patterns = ["kt_*.py"]
[tool.pylint.format]
max-line-length = 100
[tool.black]
line-length = 100
force-exclude = 'kt_.*.py'
[project.scripts]
check-changelog = "pdm_copier.check_changelog:main"
[tool.ruff]
line-length = 100
[tool.ruff.per-file-ignores]
"GNSScodegen.py" = ["E501"]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--html=htmldoc/tests/report.html",
"--self-contained-html",
"--junitxml=htmldoc/junit.xml",
"--cov-config=tests/coverage.conf",
"--cov=pdm_copier",
"--doctest-modules",
]
testpaths = [
"tests/",
]
[tool.pdm.version]
source = "scm"
[tool.pdm.build]
includes = [
"pdm_copier/",
]
excludes = [
"tests",
"examples",
"build",
"dev",
"dist",
"mockup",
"ksy"
]
editable-backend = "editables"
[tool.pdm.dev-dependencies]
dev = [
"coverage-badge>=1.1.0",
"docstr-coverage>=2.2.0",
"ipython~=7.23.1",
"pre-commit",
"snakeviz>=2.1.2",
]
maintain = [
"black==22.3.0",
"blacken-docs==1.12.1",
]
quality = [
"mypy>=1.2.0",
"ruff>=0.0.246",
]
doc = [
"pdoc3~=0.10.0",
"pylint~=2.15.3",
]
test = [
"pytest~=7.1.3",
"pytest-cov~=3.0.0",
"pytest-mock~=3.8.2",
"pytest-instafail~=0.4.2",
"pytest-picked~=0.4.6",
"pytest-sugar~=0.9.5",
"pytest-html~=3.1.1",
]
[tool.pdm.scripts]
site_packages = true
doc.shell = """\
mkdir -p htmldoc/pdm_copier
pdoc --html --force --config latex_math=True -o htmldoc pdm_copier
coverage html -d htmldoc/coverage --rcfile tests/coverage.conf
docstr-coverage pdm_copier -miP -sp -is -idel --skip-file-doc --exclude ".*/kt.*.py" --badge=htmldoc/doc_badge.svg
coverage-badge -f -o htmldoc/cov_badge.svg
"""