-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
134 lines (123 loc) · 4.17 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
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
134
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
# Check https://python-poetry.org/docs/pyproject/ for all available sections
name = "ansys-dpf-composites"
# Switch to released version of dpf core releasing pydpf-composites!
version = "0.7.dev0"
description = "Post-processing of composite structures based on Ansys DPF"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["PyAnsys developers <[email protected]>"]
readme = "README.rst"
repository = "https://github.com/ansys/pydpf-composites"
documentation = "https://composites.dpf.docs.pyansys.com"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
packages = [
{ include = "ansys", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.10,<4"
packaging = "*"
numpy = ">=1.22"
build = {version = ">=0.8.0", optional = true}
twine = {version = ">=4.0.1", optional = true}
Sphinx = {version = ">=5.0.1", optional = true}
numpydoc = {version = ">=1.5", optional = true}
ansys-sphinx-theme = {version = ">=0", optional = true}
sphinx-copybutton = {version = ">=0.4", optional = true}
sphinx_gallery = {version = ">=0.11.0", optional = true}
sphinx-design = {version = ">=0.3.0", optional = true}
pypandoc = {version = ">=1.8.1", optional = true}
pytest = {version = ">=7.1.2", optional = true}
pytest-cov = {version = ">=3.0.0", optional = true}
mypy = {version = ">=1.2.0", optional = true}
mypy-extensions = {version = ">=1.0.0", optional = true}
ansys-dpf-core = {git = "https://github.com/ansys/pydpf-core.git"}
# Switch to released version when we release pydpf-composites!
#ansys-dpf-core = ">=0.8"
matplotlib = {version = ">=3.5.0"}
pyvista = {version = ">=0.40.2,!=0.44.2", extras=["jupyter", "trame"], optional=true}
pre-commit = {version = "*", optional = true}
# Upper bound because there is a problem with examples in versions > 1.20.1
sphinx-autodoc-typehints = {version = "^1.19,<1.20.2", optional = true}
pylint = {version = ">=2.13", optional = true}
scipy = {version = ">=1.9.0", optional = true}
fatpack = {version = ">=0.5", optional = true}
pytest-rerunfailures = {version = ">=11.1.2", optional = true}
[tool.poetry.extras]
all = [
"Sphinx",
"ansys-sphinx-theme",
"sphinx-copybutton",
"sphinx_gallery",
"sphinx-design",
"numpydoc",
"pyvista",
"pytest",
"pytest-cov",
"pytest-rerunfailures",
"twine",
"build",
"mypy",
"mypy-extensions",
"pylint",
"pre-commit",
"pypandoc",
"scipy",
"fatpack",
"sphinx-autodoc-typehints",
]
docs = ["Sphinx", "ansys-sphinx-theme", "sphinx-copybutton", "numpydoc", "sphinx_gallery",
"pypandoc", "sphinx-autodoc-typehints", "sphinx-design", "scipy", "pyvista", "fatpack"]
examples = ["scipy", "pyvista", "fatpack"]
test = ["pytest", "pytest-cov", "pytest-rerunfailures"]
build = ["build", "twine"]
pre-commit = ["pre-commit", "mypy", "mypy-extensions", "pylint"]
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
force_sort_within_sections = true
line_length = 100
default_section = "THIRDPARTY"
src_paths = ["doc", "src", "tests"]
[tool.coverage.run]
source = ["ansys.dpf.composites"]
[tool.coverage.report]
show_missing = true
[tool.codespell]
skip = '*.dat,*.out'
ignore-words-list = 'ans,eyt'
quiet-level = 3
[tool.pylint.messages_control]
disable = [
"C",
"R",
# The 'attribute-defined-outside-init' and 'unused_argument' checks
# produce too many false positives from constructors which go over
# a pre-defined list of attributes (e.g. ATTRS_PUCK).
"attribute-defined-outside-init",
"unused-argument",
"eval-used",
"fixme",
]
[tool.pylint.typecheck]
ignored-classes = [
"ansys.dpf.core.inputs.Inputs",
"ansys.dpf.core.outputs.Outputs"
]
[tool.mypy]
python_version = 3.10
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/tests"
ignore_missing_imports = true