-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
179 lines (154 loc) · 4.68 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[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-grantami-jobqueue"
version = "1.2.0dev0"
description = "A python wrapper for the Granta MI Job Queue API"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
readme = "README.rst"
repository = "https://github.com/ansys/grantami-jobqueue"
documentation = "https://jobqueue.grantami.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.0"
ansys-openapi-common = "^2.0.0"
# Ensure PIP_INDEX_URL is not set in CI when reverting to a public version of the package.
ansys-grantami-serverapi-openapi = "^4.0.0"
# Optional documentation dependencies
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
sphinx = "^8.1.3"
numpydoc = "^1.4.0"
ansys-sphinx-theme = "^1.0.4"
sphinx-copybutton = "^0.5.0"
jupytext = "^1.14.4"
nbsphinx = "^0.9.0"
ipykernel = "^6.21.2" # required by nbsphinx to run notebooks.
sphinx-jinja = "^2.0.2"
enum-tools = "^0.12.0"
sphinx-toolbox = "^3.5.0"
sphinx-design = "^0.6.0"
sphinx-autoapi = "^3.1.0a2"
sphinxcontrib-napoleon = "^0.7.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
pytest-cov = "^6.0.0"
requests-mock = "^1.10.0"
pre-commit = "^4.0.1"
mypy = "^1.8.0"
[[tool.poetry.source]]
name = "private-pypi"
url = "https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/"
priority = "explicit"
[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.grantami"]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
filterwarnings = "error"
markers = [
"""integration: test requires a real database (deselect with '-m \"not integration\"')"""
]
[tool.pydocstyle]
convention = "numpy"
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
show_error_codes = true
files = "src"
explicit_package_bases = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
namespace_packages = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"EX01",
"SA01",
"ES01",
]
override_PR02 = [ # numpydoc_validation doesn't support dataclasses
'Provides a read\-only configuration of the job queue on the server', # JobQueueProcessingConfiguration
'Defines a record to include in an export job', # ExportRecord
]
override_PR01 = [ # User does not need to instantiate these objects and parameter types are not local to this package
'Base class that represents a job on the server', # AsyncJob __init__
'Create an instance of a JobQueue AsyncJob subclass', # AsyncJob create_job
'Communicates with Granta MI' # JobQueueApiClient
]
exclude = [ # don't report on objects that match any of these regexes
'\.__repr__$',
'\.__new__$',
'\.__init__$',
]
[tool.towncrier]
package = "ansys.grantami.jobqueue"
directory = "doc/changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "doc/changelog.d/changelog_template.jinja"
title_format = "## [{version}](https://github.com/ansys/grantami-jobqueue/releases/tag/v{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/ansys/grantami-jobqueue/pull/{issue})"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "dependencies"
name = "Dependencies"
showcontent = true
[[tool.towncrier.type]]
directory = "miscellaneous"
name = "Miscellaneous"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance"
showcontent = true
[[tool.towncrier.type]]
directory = "test"
name = "Test"
showcontent = true