-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 2.95 KB
/
pyproject.toml
File metadata and controls
133 lines (119 loc) · 2.95 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
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "PyCCX"
dynamic = ["version"]
description = "Simulation and FEA environment for Python built upon Calculix and GMSH"
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Luke Parry", email = "dev@lukeparry.uk" },
{ name = "Luktug", email = "contact@luktug.co.uk" }
]
keywords = [
"FEA",
"Finite Element Analysis",
"Simulation",
"Calculix",
"GMSH"
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
dependencies = [
"matplotlib",
"gmsh>=4.14.0",
"numpy>1.21",
"colorlog",
"setuptools",
]
[project.optional-dependencies]
docs = [
'numpy',
'sphinx',
'jupyter',
'sphinx_rtd_theme',
'sphinx-paramlinks',
'sphinx_automodapi',
'sphinx_rtd_theme',
'furo',
'sphinx-autodoc-typehints',
'autodocsumm',
'm2r2==0.3.4',
'docutils==0.21.2',
'pypandoc',
'autodocsumm',
'mock',
'matplotlib',
'trimesh'
]
tests = [
"pytest",
"pytest-cov",
"coverage-badge"
]
build = ["build", "hatchling", "requests", "twine"]
codegen = ["pytest", "numpy"]
lint = ["ruff", "pre-commit"]
[project.urls]
Homepage = "https://github.com/drlukeparry/pyccx"
Documentation = "https://pyccx.readthedocs.io/en/latest/"
Source = "https://github.com/drlukeparry/pyccx/"
Tracker = "https://github.com/drlukeparry/pyccx/issues"
[build-system]
requires = ["requests", "hatchling", "setuptools"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "pyccx/version.py"
[tool.hatch.build.targets.sdist]
include = [
"pyccx",
"examples",
"docs"
]
[tool.hatch.build.targets.wheel]
include = [
"pyccx",
"examples",
"docs"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests"
]
[tool.ruff.lint]
select = ["F", "E", "W", "B", "RUF"]
exclude = ["setup.py", "build/*", "dist/*", "docs/*", "examples/*", "tests/*", "__pycache__", ".github"]
ignore = [
"B904", # Bare exception
"E501", # Line too long
"E722", # Bare exceptions
"F401", # Unused imports
"F841", # Unused variables
"E731", # Do not assign a `lambda` expression, use a `def`
"RUF005"
]
[tool.mypy]
python_version = "3.9"
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
disable_error_code = ["import-untyped", "var-annotated"]
warn_unreachable = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
strict_optional = true
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true