-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (109 loc) · 2.99 KB
/
pyproject.toml
File metadata and controls
122 lines (109 loc) · 2.99 KB
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "compas_slicer"
version = "0.8.0"
description = "Slicing package for FDM 3D Printing with COMPAS"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Ioanna Mitropoulou", email = "mitropoulou@arch.ethz.ch"},
{name = "Joris Burger"},
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"attrs>=25.0",
"compas>=2.15",
"compas_cgal>=0.9.1",
"loguru>=0.7",
"networkx>=3.2",
"numpy>=2.0",
"progressbar2>=4.5",
"pyclipper>=1.3",
"scipy>=1.10",
"tomli>=2.0; python_version < '3.11'",
]
[project.urls]
Homepage = "https://github.com/compas-dev/compas_slicer"
Documentation = "https://compas.dev/compas_slicer"
Repository = "https://github.com/compas-dev/compas_slicer"
[project.optional-dependencies]
viz = [
"compas_viewer>=1.2",
]
dev = [
"bump2version>=1.0",
"compas_invocations2>=0.7",
"invoke>=2.0",
"mypy",
"pytest>=7.0",
"pytest-benchmark",
"pytest-cov",
"ruff",
"twine",
]
docs = [
"mike>=2.0",
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.27",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["*.json", "*.obj", "*.toml"]
[tool.ruff]
target-version = "py39"
line-length = 120
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"SIM108", # use ternary operator instead of if-else
]
[tool.ruff.lint.isort]
known-first-party = ["compas_slicer", "compas_slicer_ghpython"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = ["tests", "docs", "examples", "scripts"]
[[tool.mypy.overrides]]
module = ["compas_slicer.slicers.*", "compas_slicer.print_organization.*", "compas_slicer.pre_processing.*"]
disable_error_code = ["no-redef", "operator"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
addopts = "-ra --tb=short"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.coverage.run]
source = ["src/compas_slicer"]
omit = ["*/tests/*"]
[tool.coverage.report]
fail_under = 50