-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
108 lines (94 loc) · 2.79 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
[build-system]
requires = ["setuptools","wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "coxeter"
version = "0.9.0"
requires-python = ">=3.8"
description = "Tools for creating and manipulating shapes."
readme = "README.rst"
license = { file = "LICENSE" }
authors = [
{name = "Vyas Ramasubramani", email = "vramasub@umich.edu"},
{name = "Bradley Dice", email = "bdice@umich.edu"},
{name = "Jen Bradley", email = "jenbrad@umich.edu"},
]
dependencies = ["numpy>=1.19.0","rowan>=1.2.0","scipy>1.0.0"]
keywords = ["geometry"]
dynamic = ["optional-dependencies"]
[project.urls]
Documentation = "https://coxeter.readthedocs.io"
Download = "https://pypi.org/project/coxeter/"
Source = "https://github.com/glotzerlab/coxeter"
Issues = "https://github.com/glotzerlab/coxeter/issues"
[tool.setuptools]
# Build the contents of coxeter rather than the JOSS paper
# Subpackages are enumerated to avoid circular imports
packages=["coxeter",
"coxeter.shapes",
"coxeter.families",
"coxeter.extern.polytri",
"coxeter.extern.bentley_ottmann"]
[tool.setuptools.dynamic]
optional-dependencies = {tests = { file = ["tests/requirements.txt"] }, doc = { file = ["doc/requirements.txt"] }}
[tool.pytest.ini_options]
# Additional command line options for pytest
addopts = "--doctest-modules -p coxeter.__doctest_fixtures"
doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"
# Add percentage progress bar to the pytest console output
console_output_style = "progress"
# Specify the tests folder to speed up collection.
testpaths = ["tests"]
[tool.black]
exclude = '''
(
/(
| coxeter/extern/*
)/
)
'''
[tool.ruff]
include = ["*.py", "*.ipynb"]
exclude = ["*/extern/*"]
line-length = 88
select = [
"UP", # pyupgrade
"B",
"E",
"F",
"N",
"W", # ruff supports W but, W503 is not supported!!
"D", # pydocstyle
"I", # isort
]
ignore =[
"D105", # Magic methods don't require documentation.
"D107", # __init__ methods don't require documentation.
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-third-party = ["hypothesis", "pytest"]
known-first-party = ["conftest", "coxeter", "utils"]
[tool.ruff.lint.per-file-ignores]
"coxeter/__init__.py" = ["F401"]
"tests/*" = ["D", "B018"]
"setup.py" = ["D"]
"doc/source/conf.py" = ["D"]
"*ipynb" = ["B", "E", "F", "N", "W", "D"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.bumpversion]
# Configuration for https://github.com/callowayproject/bump-my-version
tag = false
commit = false
message = "Bump version: {current_version} → {new_version}"
[[tool.bumpversion.files]]
filename="pyproject.toml"
[[tool.bumpversion.files]]
filename="doc/source/conf.py"
[[tool.bumpversion.files]]
filename="coxeter/__init__.py"
# [tool.distutils.bdist_wheel]
# python-tag = "py3"