forked from prideout/svg3d
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
62 lines (51 loc) · 1.82 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
[build-system]
requires = ["setuptools","wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "svg3d"
version = "0.1.0"
requires-python = ">=3.6"
description = "Minimal library for rendering polyhedra as SVG wireframes."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{name = "Jen Bradley", email = "[email protected]"},
]
dynamic = ["dependencies", "optional-dependencies"]
[project.urls]
Source = "https://github.com/janbridley/svg3d"
Issues = "https://github.com/janbridley/svg3d/issues"
[tool.setuptools]
packages = ["svg3d"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
optional-dependencies = {tests = { file = ["tests/requirements.txt"] }}
[tool.ruff]
include = ["*.py", "*.ipynb"]
line-length = 88
[tool.ruff.lint]
select = ["B","E","F","I","N","S","W","C4","UP","NPY","SIM","PIE790","PIE794"]
ignore = [
"S101", # Assertions are a good thing
"D105", # Magic methods don't require documentation.
"D107", # __init__ methods don't require documentation.
"SIM116", # Allow certain branched if statements
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "B018", "F811"]
"__init__.py" = ["F401"] # Do not remove "unused" imports in __init__.py files
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
# Additional command line options for pytest
addopts = "--doctest-modules --doctest-continue-on-failure --doctest-glob='*.rst'"
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", "svg3d"]
# Disable hypothesis health checks - these are frustrating at best
# hypothesis-suppress_health_check = ["filter_too_much"]