-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
74 lines (64 loc) · 2.18 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "morphe-sketch"
version = "0.1.0"
description = "CAD-agnostic representation for 2D sketch geometry and constraints"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
keywords = ["cad", "sketch", "geometry", "constraints", "freecad", "solidworks", "fusion360"]
authors = [
{name = "Alan", email = "alan@codereclaimers.com"}
]
[project.urls]
Homepage = "https://github.com/codereclaimers/morphe"
Repository = "https://github.com/codereclaimers/morphe"
Issues = "https://github.com/codereclaimers/morphe/issues"
Documentation = "https://github.com/codereclaimers/morphe/blob/main/SPECIFICATION.md"
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"mypy>=1.0",
"black>=23.0",
"ruff>=0.1.0",
]
[tool.setuptools.packages.find]
include = ["morphe*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4"]
ignore = [
"E501", # Line too long
"N802", # Function name should be lowercase (constraint constructors are intentionally PascalCase)
"B027", # Empty method in abstract base class (intentional default implementations)
]
[tool.ruff.lint.per-file-ignores]
"morphe/adapters/fusion/test_scripts/*.py" = ["E402"] # Imports after path manipulation
"morphe/adapters/fusion/addin/*/*.py" = ["E402"] # Imports after path setup for add-in
"morphe/adapters/fusion/script/*/*.py" = ["E402", "N999"] # Imports after path setup, Fusion script naming