-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
182 lines (158 loc) · 3.58 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
# For the standard reference on Python packaging, including using
# ``pyproject.toml`` for build definition and configuration see:
#
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
#
name = "ccm"
description = "Cyclomatic complexity toolkit for Python"
authors = [
{name = "S. R. Murthy", email = "[email protected]"},
{name = "Sandeep Murthy", email = "[email protected]"},
]
maintainers = [
{name = "S. R. Murthy", email = "[email protected]"}
]
dynamic = ["version"]
requires-python = ">=3.7"
license = {text = "MPL"}
dependencies = [
"matplotlib",
"networkx",
"pygraphviz",
"scipy",
"pdm",
]
readme = "README.md"
keywords = [
"complexity",
"cyclomatic complexity",
"bytecode",
"directed graphs",
"directed acyclic graphs",
]
classifiers = [
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
version = "0.1.0"
[project.optional-dependencies]
user = [
"jupyter",
]
[project.scripts]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.urls]
Homepage = "https://github.com/sr-murthy/ccm"
Documentation = "https://github.com/sr-murthy/ccm"
Repository = "https://github.com/sr-murthy/ccm"
# For working with PDM, including configuration and usage see:
#
# https://pdm.fming.dev/latest/
# https://pdm.fming.dev/latest/reference/pep621/
# https://pdm.fming.dev/latest/reference/cli/
#
[tool.pdm]
distribution = true
[tool.pdm.build]
package-dir = "src"
includes = [
"src/ccm",
]
# File patterns to exclude, the paths are relative to the project root.
excludes = [
"docs",
"build",
"dist",
"tests",
".pytest_cache",
"*.pyc",
"*.env",
"*__pycache__*",
]
source-includes = [
"README.rst",
]
editable-backend = "path"
[tool.pdm.dev-dependencies]
build = [
"pip>=23.1.2",
]
dev = [
"pytest",
"coverage",
"ipython",
"ipdb",
"virtualenv",
"ruff",
]
[tool.pdm.scripts]
[tool.pdm.version]
source = "file"
path = "src/ccm/version.py"
# For ``pytest`` configuration, including TOML-specific configuration see:
#
# https://docs.pytest.org/en/7.3.x/reference/customize.html#configuration
# https://docs.pytest.org/en/7.3.x/reference/customize.html#pyproject-toml
#
[tool.pytest.ini_options]
pythonpath = "src"
addopts = """\
--cache-clear
--code-highlight=yes \
--color=yes \
--cov=src \
--cov-config=pyproject.toml \
--cov-report=xml \
--cov-report=html \
--dist worksteal \
--numprocesses=auto \
-ra \
--tb=native \
--verbosity=3\
"""
filterwarnings = [
"ignore::DeprecationWarning"
]
python_files = ["test_*.py",]
python_classes = ["Test", "Acceptance",]
python_functions = ["test"]
testpaths = [
"tests/",
]
markers = [
# Test tags/labels/markers - not using any currently
]
# For ``coverage`` configuration see the reference from version ``7.4.1``:
#
# https://coverage.readthedocs.io/en/7.4.1/config.html
#
[tool.coverage.run]
branch = true
omit = [
"./build",
"./dist",
"./docs",
"*/tests*",
".pytest_cache",
"*.pyc",
"*.env",
"*__pycache__*",
"version.py"
]
source = ["src"]
[tool.coverage.report]
precision = 3
show_missing = true
skip_covered = true
skip_empty = true
sort = "Name"