-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
172 lines (158 loc) · 4.44 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "data-morph-ai"
authors = [
{name = "Stefanie Molin", email = "24376333+stefmolin@users.noreply.github.com"},
{name = "Aaron Stevens", email = "bheklilr2@gmail.com"},
{name = "Justin Matejka", email = "Justin.Matejka@Autodesk.com"}
]
maintainers = [
{name = "Stefanie Molin"},
]
description = "Teaching tool on the importance of data visualization."
readme = "README.md"
keywords = ["data visualization", "summary statistics", "data animation"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Matplotlib",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Visualization",
]
requires-python = ">=3.9"
dependencies = [
"matplotlib>=3.3",
"numpy>=1.20",
"pandas>=1.2",
"scipy>=1.10.0",
"tqdm>=4.64.1",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-randomly",
]
docs = [
"pydata-sphinx-theme>=0.14.1",
"sphinx>=7.2.6",
"sphinx-argparse>=0.4.0",
"sphinx_copybutton>=0.5.1",
]
[project.scripts]
data-morph = "data_morph.cli:main"
[project.urls]
"Homepage" = "https://stefaniemolin.com/data-morph"
"Bug Tracker" = "https://github.com/stefmolin/data-morph/issues"
"Documentation" = "https://stefaniemolin.com/data-morph/stable/api.html"
"Source" = "https://github.com/stefmolin/data-morph"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"data_morph.data.starter_shapes" = ["*"]
"data_morph.plotting.config" = ["*"]
[tool.setuptools.dynamic]
version = {attr = "data_morph.__version__"}
# configuration for supported pre-commit hooks
[tool.codespell]
ignore-words-list = "recuse"
ignore-regex = 'https://([\w/\.])+'
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 100
exclude = ["setup.py", "docs", "build"]
verbose = 2
quiet = false
color = true
omit-covered-files = false
# TODO: revisit this later when I add badges to the README
# generate-badge = "."
# badge-format = "svg"
[tool.ruff]
line-length = 88
select = [
"C", # mccabe rules
"F", # pyflakes rules
"E", # pycodestyle error rules
"W", # pycodestyle warning rules
"B", # flake8-bugbear rules
"I", # isort rules
]
ignore = [
"C901", # max-complexity-10
"E501", # line-too-long
]
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.isort]
known-first-party = ["data_morph"]
[tool.pytest.ini_options]
addopts = [
"-ra",
"-l",
"-v",
"--tb=short",
"--import-mode=importlib",
"--strict-markers",
"--strict-config",
"--cov=data_morph",
"--cov=tests",
"--no-cov-on-fail",
"--cov-report=term-missing",
]
xfail_strict = true
testpaths = ["tests"]
markers = [
"bounds: Run tests on bounds logic.",
"circles: Run tests on circular shapes.",
"cli: Run tests involving the CLI.",
"dataset: Run tests on Dataset logic.",
"input_validation: Run tests on input validation.",
"lines: Run tests on LineCollection and related shapes.",
"morpher: Run tests on the morphing process,",
"plotting: Run tests on plotting logic.",
"points: Run tests on PointCollection and related shapes.",
"polygons: Run tests on polygon shapes.",
"shapes: Run tests related to shapes.",
]
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"ES01", # but don't require an extended summary
"EX01", # or examples
"SA01", # or a see also section
"SS06", # and don't require the summary to fit on one line
]
exclude = [ # don't report on checks for these
'\.__init__$',
'\.__repr__$',
'\.__str__$',
]
override_SS05 = [ # allow docstrings to start with these words
'^Process ',
'^Assess ',
'^Access ',
]