ansys-pre-commit-hooks 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ansys_pre_commit_hooks-0.4.2/AUTHORS.md +12 -0
- ansys_pre_commit_hooks-0.4.2/MANIFEST.in +2 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/PKG-INFO +33 -27
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/README.rst +6 -6
- ansys_pre_commit_hooks-0.4.2/pyproject.toml +76 -0
- ansys_pre_commit_hooks-0.4.2/setup.cfg +4 -0
- ansys_pre_commit_hooks-0.4.2/setup.py +109 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys/pre_commit_hooks/VERSION +1 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/__init__.py +6 -5
- ansys_pre_commit_hooks-0.4.2/src/ansys/pre_commit_hooks/__pycache__/__init__.cpython-310.pyc +0 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys/pre_commit_hooks/__pycache__/tech_review.cpython-310.pyc +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/add_license_headers.py +5 -3
- ansys_pre_commit_hooks-0.4.2/src/ansys/pre_commit_hooks/assets/licenses.json +630 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/tech_review.py +19 -14
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/PKG-INFO +429 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/SOURCES.txt +32 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/dependency_links.txt +1 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/entry_points.txt +3 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/requires.txt +18 -0
- ansys_pre_commit_hooks-0.4.2/src/ansys_pre_commit_hooks.egg-info/top_level.txt +1 -0
- ansys_pre_commit_hooks-0.4.2/tests/test_metadata.py +36 -0
- ansys_pre_commit_hooks-0.4.2/tests/test_reuse.py +673 -0
- ansys_pre_commit_hooks-0.4.2/tests/test_tech_review.py +467 -0
- ansys_pre_commit_hooks-0.4.0/pyproject.toml +0 -128
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/LICENSE +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/assets/.reuse/templates/ansys.jinja2 +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/assets/LICENSES/MIT.txt +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/AUTHORS +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/CODE_OF_CONDUCT.md +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/CONTRIBUTING.md +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/CONTRIBUTORS.md +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/LICENSE +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/README.md +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/README.rst +0 -0
- {ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/templates/dependabot.yml +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This is the list of ansys-pre-commit-hooks's significant contributors.
|
|
2
|
+
#
|
|
3
|
+
# This file does not necessarily list everyone who has contributed code.
|
|
4
|
+
#
|
|
5
|
+
# For contributions made under a Corporate CLA, the organization is
|
|
6
|
+
# added to this file.
|
|
7
|
+
#
|
|
8
|
+
# If you have contributed to the repository and wish to be added to this file
|
|
9
|
+
# please submit a request.
|
|
10
|
+
#
|
|
11
|
+
#
|
|
12
|
+
ANSYS, Inc.
|
|
@@ -1,38 +1,45 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ansys-pre-commit-hooks
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A Python wrapper to create Ansys-tailored pre-commit hooks
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Home-page: https://github.com/ansys/pre-commit-hooks
|
|
6
|
+
Author: ANSYS, Inc.
|
|
7
|
+
Author-email: pyansys.core@ansys.com
|
|
8
|
+
Maintainer: ANSYS, Inc.
|
|
9
|
+
Maintainer-email: pyansys.core@ansys.com
|
|
10
|
+
License: MIT
|
|
11
|
+
Project-URL: Source, https://github.com/ansys/pre-commit-hooks/
|
|
12
|
+
Project-URL: Tracker, https://github.com/ansys/pre-commit-hooks/issues
|
|
13
|
+
Project-URL: Homepage, https://github.com/ansys/pre-commit-hooks
|
|
14
|
+
Project-URL: Documentation, https://pre-commit-hooks.docs.pyansys.com
|
|
9
15
|
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
10
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
11
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
Requires-Python: >=3.9,<4
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
License-File: AUTHORS.md
|
|
16
27
|
Requires-Dist: GitPython==3.1.43
|
|
17
|
-
Requires-Dist: importlib-metadata==8.
|
|
28
|
+
Requires-Dist: importlib-metadata==8.2.0
|
|
18
29
|
Requires-Dist: Jinja2==3.1.4
|
|
19
|
-
Requires-Dist: reuse==
|
|
30
|
+
Requires-Dist: reuse==4.0.3
|
|
20
31
|
Requires-Dist: requests==2.32.3
|
|
21
32
|
Requires-Dist: semver==3.0.2
|
|
22
33
|
Requires-Dist: toml==0.10.2
|
|
23
|
-
Requires-Dist: ansys-sphinx-theme[autoapi]==0.16.6 ; extra == "doc"
|
|
24
|
-
Requires-Dist: numpydoc==1.7.0 ; extra == "doc"
|
|
25
|
-
Requires-Dist: sphinx==7.3.7 ; extra == "doc"
|
|
26
|
-
Requires-Dist: sphinx-autodoc-typehints==2.2.2 ; extra == "doc"
|
|
27
|
-
Requires-Dist: sphinx-copybutton==0.5.1 ; extra == "doc"
|
|
28
|
-
Requires-Dist: pytest==8.2.2 ; extra == "tests"
|
|
29
|
-
Requires-Dist: pytest-cov==5.0.0 ; extra == "tests"
|
|
30
|
-
Project-URL: Documentation, https://pre-commit-hooks.docs.ansys.com
|
|
31
|
-
Project-URL: Homepage, https://github.com/ansys/pre-commit-hooks
|
|
32
|
-
Project-URL: Source, https://github.com/ansys/pre-commit-hooks
|
|
33
|
-
Project-URL: Tracker, https://github.com/ansys/pre-commit-hooks/issues
|
|
34
34
|
Provides-Extra: doc
|
|
35
|
+
Requires-Dist: ansys-sphinx-theme[autoapi]==0.16.6; extra == "doc"
|
|
36
|
+
Requires-Dist: numpydoc==1.7.0; extra == "doc"
|
|
37
|
+
Requires-Dist: sphinx==7.4.7; extra == "doc"
|
|
38
|
+
Requires-Dist: sphinx-autodoc-typehints==2.2.3; extra == "doc"
|
|
39
|
+
Requires-Dist: sphinx-copybutton==0.5.1; extra == "doc"
|
|
35
40
|
Provides-Extra: tests
|
|
41
|
+
Requires-Dist: pytest==8.3.2; extra == "tests"
|
|
42
|
+
Requires-Dist: pytest-cov==5.0.0; extra == "tests"
|
|
36
43
|
|
|
37
44
|
Ansys pre-commit hooks
|
|
38
45
|
======================
|
|
@@ -73,7 +80,7 @@ Currently, these hooks are available:
|
|
|
73
80
|
`REUSE <https://reuse.software/>`_ . To use this hook, you must
|
|
74
81
|
have ``REUSE`` implemented in your repository.
|
|
75
82
|
* ``tech-review``: Do a technical review of your repository according to
|
|
76
|
-
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
83
|
+
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
77
84
|
|
|
78
85
|
``add-license-headers`` setup
|
|
79
86
|
-----------------------------
|
|
@@ -120,7 +127,7 @@ Set custom arguments
|
|
|
120
127
|
.. code:: yaml
|
|
121
128
|
|
|
122
129
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
123
|
-
rev: v0.4.
|
|
130
|
+
rev: v0.4.2
|
|
124
131
|
hooks:
|
|
125
132
|
- id: add-license-headers
|
|
126
133
|
args: ["--custom_copyright", "custom copyright phrase", "--custom_template", "template_name", "--custom_license", "license_name", "--ignore_license_check", "--start_year", "2023"]
|
|
@@ -165,7 +172,7 @@ the hook should run on, add the necessary regex to the ``files`` line in your
|
|
|
165
172
|
.. code:: yaml
|
|
166
173
|
|
|
167
174
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
168
|
-
rev: v0.4.
|
|
175
|
+
rev: v0.4.2
|
|
169
176
|
hooks:
|
|
170
177
|
- id: add-license-headers
|
|
171
178
|
files: '(src|examples|tests|newFolder)/.*\.(py|newExtension)|\.(proto|newExtension)'
|
|
@@ -178,7 +185,7 @@ In .pre-commit-config.yaml:
|
|
|
178
185
|
.. code:: yaml
|
|
179
186
|
|
|
180
187
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
181
|
-
rev: v0.4.
|
|
188
|
+
rev: v0.4.2
|
|
182
189
|
hooks:
|
|
183
190
|
- id: add-license-headers
|
|
184
191
|
exclude: |
|
|
@@ -231,7 +238,7 @@ Technical review hook in ``ansys/pre-commit-hooks``' .pre-commit-config.yaml fil
|
|
|
231
238
|
.. code:: yaml
|
|
232
239
|
|
|
233
240
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
234
|
-
rev: v0.4.
|
|
241
|
+
rev: v0.4.2
|
|
235
242
|
hooks:
|
|
236
243
|
- id: tech-review
|
|
237
244
|
args:
|
|
@@ -243,7 +250,7 @@ Technical review hook in ``PyMechanical``'s .pre-commit-config.yaml file:
|
|
|
243
250
|
.. code:: yaml
|
|
244
251
|
|
|
245
252
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
246
|
-
rev: v0.4.
|
|
253
|
+
rev: v0.4.2
|
|
247
254
|
hooks:
|
|
248
255
|
- id: tech-review
|
|
249
256
|
args:
|
|
@@ -420,4 +427,3 @@ the building requirements and then execute the build module with these commands:
|
|
|
420
427
|
.. _pytest: https://docs.pytest.org/en/stable/
|
|
421
428
|
.. _Sphinx: https://www.sphinx-doc.org/en/master/
|
|
422
429
|
.. _tox: https://tox.wiki/
|
|
423
|
-
|
|
@@ -37,7 +37,7 @@ Currently, these hooks are available:
|
|
|
37
37
|
`REUSE <https://reuse.software/>`_ . To use this hook, you must
|
|
38
38
|
have ``REUSE`` implemented in your repository.
|
|
39
39
|
* ``tech-review``: Do a technical review of your repository according to
|
|
40
|
-
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
40
|
+
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
41
41
|
|
|
42
42
|
``add-license-headers`` setup
|
|
43
43
|
-----------------------------
|
|
@@ -84,7 +84,7 @@ Set custom arguments
|
|
|
84
84
|
.. code:: yaml
|
|
85
85
|
|
|
86
86
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
87
|
-
rev: v0.4.
|
|
87
|
+
rev: v0.4.2
|
|
88
88
|
hooks:
|
|
89
89
|
- id: add-license-headers
|
|
90
90
|
args: ["--custom_copyright", "custom copyright phrase", "--custom_template", "template_name", "--custom_license", "license_name", "--ignore_license_check", "--start_year", "2023"]
|
|
@@ -129,7 +129,7 @@ the hook should run on, add the necessary regex to the ``files`` line in your
|
|
|
129
129
|
.. code:: yaml
|
|
130
130
|
|
|
131
131
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
132
|
-
rev: v0.4.
|
|
132
|
+
rev: v0.4.2
|
|
133
133
|
hooks:
|
|
134
134
|
- id: add-license-headers
|
|
135
135
|
files: '(src|examples|tests|newFolder)/.*\.(py|newExtension)|\.(proto|newExtension)'
|
|
@@ -142,7 +142,7 @@ In .pre-commit-config.yaml:
|
|
|
142
142
|
.. code:: yaml
|
|
143
143
|
|
|
144
144
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
145
|
-
rev: v0.4.
|
|
145
|
+
rev: v0.4.2
|
|
146
146
|
hooks:
|
|
147
147
|
- id: add-license-headers
|
|
148
148
|
exclude: |
|
|
@@ -195,7 +195,7 @@ Technical review hook in ``ansys/pre-commit-hooks``' .pre-commit-config.yaml fil
|
|
|
195
195
|
.. code:: yaml
|
|
196
196
|
|
|
197
197
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
198
|
-
rev: v0.4.
|
|
198
|
+
rev: v0.4.2
|
|
199
199
|
hooks:
|
|
200
200
|
- id: tech-review
|
|
201
201
|
args:
|
|
@@ -207,7 +207,7 @@ Technical review hook in ``PyMechanical``'s .pre-commit-config.yaml file:
|
|
|
207
207
|
.. code:: yaml
|
|
208
208
|
|
|
209
209
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
210
|
-
rev: v0.4.
|
|
210
|
+
rev: v0.4.2
|
|
211
211
|
hooks:
|
|
212
212
|
- id: tech-review
|
|
213
213
|
args:
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"setuptools>=42.0",
|
|
4
|
+
"GitPython==3.1.43",
|
|
5
|
+
"Jinja2==3.1.4",
|
|
6
|
+
"reuse==4.0.3",
|
|
7
|
+
"requests==2.32.3",
|
|
8
|
+
"semver==3.0.2",
|
|
9
|
+
"toml==0.10.2",
|
|
10
|
+
"wheel",
|
|
11
|
+
]
|
|
12
|
+
build-backend = "setuptools.build_meta"
|
|
13
|
+
|
|
14
|
+
[tool.black]
|
|
15
|
+
line-length = 100
|
|
16
|
+
|
|
17
|
+
[tool.isort]
|
|
18
|
+
profile = "black"
|
|
19
|
+
force_sort_within_sections = true
|
|
20
|
+
line_length = 100
|
|
21
|
+
src_paths = ["doc", "src", "tests"]
|
|
22
|
+
|
|
23
|
+
[tool.codespell]
|
|
24
|
+
ignore-words = "doc/styles/config/vocabularies/ANSYS/accept.txt"
|
|
25
|
+
|
|
26
|
+
[tool.coverage.run]
|
|
27
|
+
source = ["ansys.pre_commit_hooks"]
|
|
28
|
+
|
|
29
|
+
[tool.coverage.report]
|
|
30
|
+
show_missing = true
|
|
31
|
+
|
|
32
|
+
[tool.pytest.ini_options]
|
|
33
|
+
minversion = "7.1"
|
|
34
|
+
addopts = "--cov=ansys.pre_commit_hooks --cov-report term-missing -vv"
|
|
35
|
+
testpaths = [
|
|
36
|
+
"tests",
|
|
37
|
+
]
|
|
38
|
+
markers = [
|
|
39
|
+
"license_headers: marks tests for add-license-headers hook",
|
|
40
|
+
"tech_review: marks tests for tech-review hook",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[tool.towncrier]
|
|
44
|
+
package = "ansys.pre_commit_hooks"
|
|
45
|
+
directory = "doc/changelog.d"
|
|
46
|
+
filename = "CHANGELOG.md"
|
|
47
|
+
start_string = "<!-- towncrier release notes start -->\n"
|
|
48
|
+
underlines = ["", "", ""]
|
|
49
|
+
template = "doc/changelog.d/changelog_template.jinja"
|
|
50
|
+
title_format = "## [{version}](https://github.com/ansys/pre-commit-hooks/releases/tag/v{version}) - {project_date}"
|
|
51
|
+
issue_format = "[#{issue}](https://github.com/ansys/pre-commit-hooks/pull/{issue})"
|
|
52
|
+
|
|
53
|
+
[[tool.towncrier.type]]
|
|
54
|
+
directory = "added"
|
|
55
|
+
name = "Added"
|
|
56
|
+
showcontent = true
|
|
57
|
+
|
|
58
|
+
[[tool.towncrier.type]]
|
|
59
|
+
directory = "changed"
|
|
60
|
+
name = "Changed"
|
|
61
|
+
showcontent = true
|
|
62
|
+
|
|
63
|
+
[[tool.towncrier.type]]
|
|
64
|
+
directory = "fixed"
|
|
65
|
+
name = "Fixed"
|
|
66
|
+
showcontent = true
|
|
67
|
+
|
|
68
|
+
[[tool.towncrier.type]]
|
|
69
|
+
directory = "dependencies"
|
|
70
|
+
name = "Dependencies"
|
|
71
|
+
showcontent = true
|
|
72
|
+
|
|
73
|
+
[[tool.towncrier.type]]
|
|
74
|
+
directory = "miscellaneous"
|
|
75
|
+
name = "Miscellaneous"
|
|
76
|
+
showcontent = true
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"""Installation file for ansys-pre-commit-hooks."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
from setuptools import find_namespace_packages, setup
|
|
7
|
+
from setuptools.command.develop import develop
|
|
8
|
+
from setuptools.command.install import install
|
|
9
|
+
|
|
10
|
+
SCRIPT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src", "ansys")
|
|
11
|
+
|
|
12
|
+
sys.path.append(os.path.dirname(SCRIPT_DIR))
|
|
13
|
+
|
|
14
|
+
from ansys.pre_commit_hooks.tech_review import JSON_URL, LICENSES_JSON, download_license_json
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class CustomInstallCommand(install):
|
|
18
|
+
"""Custom install command to download the license json file."""
|
|
19
|
+
|
|
20
|
+
def run(self):
|
|
21
|
+
"""Download the license json file."""
|
|
22
|
+
install.run(self)
|
|
23
|
+
download_license_json(JSON_URL, LICENSES_JSON)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class CustomDevelopCommand(develop):
|
|
27
|
+
"""Custom develop command to download the license json file."""
|
|
28
|
+
|
|
29
|
+
def run(self):
|
|
30
|
+
"""Download the license json file."""
|
|
31
|
+
develop.run(self)
|
|
32
|
+
download_license_json(JSON_URL, LICENSES_JSON)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
HERE = os.path.abspath(os.path.dirname(__file__))
|
|
36
|
+
with open(os.path.join(HERE, "src", "ansys", "pre_commit_hooks", "VERSION"), encoding="utf-8") as f:
|
|
37
|
+
version = f.read().strip()
|
|
38
|
+
|
|
39
|
+
# Get the long description from the README file
|
|
40
|
+
with open(os.path.join(HERE, "README.rst"), encoding="utf-8") as f:
|
|
41
|
+
long_description = f.read()
|
|
42
|
+
|
|
43
|
+
description = "A Python wrapper to create Ansys-tailored pre-commit hooks"
|
|
44
|
+
|
|
45
|
+
setup(
|
|
46
|
+
name="ansys-pre-commit-hooks",
|
|
47
|
+
packages=find_namespace_packages(where="src", include="ansys*"),
|
|
48
|
+
package_dir={"": "src"},
|
|
49
|
+
version=version,
|
|
50
|
+
description=description,
|
|
51
|
+
long_description=long_description,
|
|
52
|
+
license="MIT",
|
|
53
|
+
author="ANSYS, Inc.",
|
|
54
|
+
author_email="pyansys.core@ansys.com",
|
|
55
|
+
maintainer="ANSYS, Inc.",
|
|
56
|
+
maintainer_email="pyansys.core@ansys.com",
|
|
57
|
+
classifiers=[
|
|
58
|
+
"Development Status :: 4 - Beta",
|
|
59
|
+
"Intended Audience :: Science/Research",
|
|
60
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
61
|
+
"License :: OSI Approved :: MIT License",
|
|
62
|
+
"Operating System :: OS Independent",
|
|
63
|
+
"Programming Language :: Python :: 3.9",
|
|
64
|
+
"Programming Language :: Python :: 3.10",
|
|
65
|
+
"Programming Language :: Python :: 3.11",
|
|
66
|
+
"Programming Language :: Python :: 3.12",
|
|
67
|
+
],
|
|
68
|
+
url="https://github.com/ansys/pre-commit-hooks",
|
|
69
|
+
python_requires=">=3.9,<4",
|
|
70
|
+
install_requires=[
|
|
71
|
+
"GitPython==3.1.43",
|
|
72
|
+
"importlib-metadata==8.2.0",
|
|
73
|
+
"Jinja2==3.1.4",
|
|
74
|
+
"reuse==4.0.3",
|
|
75
|
+
"requests==2.32.3",
|
|
76
|
+
"semver==3.0.2",
|
|
77
|
+
"toml==0.10.2",
|
|
78
|
+
],
|
|
79
|
+
extras_require={
|
|
80
|
+
"doc": [
|
|
81
|
+
"ansys-sphinx-theme[autoapi]==0.16.6",
|
|
82
|
+
"numpydoc==1.7.0",
|
|
83
|
+
"sphinx==7.4.7",
|
|
84
|
+
"sphinx-autodoc-typehints==2.2.3",
|
|
85
|
+
"sphinx-copybutton==0.5.1",
|
|
86
|
+
],
|
|
87
|
+
"tests": [
|
|
88
|
+
"pytest==8.3.2",
|
|
89
|
+
"pytest-cov==5.0.0",
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
project_urls={
|
|
93
|
+
"Source": "https://github.com/ansys/pre-commit-hooks/",
|
|
94
|
+
"Tracker": "https://github.com/ansys/pre-commit-hooks/issues",
|
|
95
|
+
"Homepage": "https://github.com/ansys/pre-commit-hooks",
|
|
96
|
+
"Documentation": "https://pre-commit-hooks.docs.pyansys.com",
|
|
97
|
+
},
|
|
98
|
+
include_package_data=True,
|
|
99
|
+
cmdclass={
|
|
100
|
+
"develop": CustomDevelopCommand,
|
|
101
|
+
"install": CustomInstallCommand,
|
|
102
|
+
},
|
|
103
|
+
entry_points={
|
|
104
|
+
"console_scripts": [
|
|
105
|
+
"add-license-headers=ansys.pre_commit_hooks.add_license_headers:main",
|
|
106
|
+
"tech-review=ansys.pre_commit_hooks.tech_review:main",
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.4.2
|
{ansys_pre_commit_hooks-0.4.0 → ansys_pre_commit_hooks-0.4.2}/src/ansys/pre_commit_hooks/__init__.py
RENAMED
|
@@ -22,9 +22,10 @@
|
|
|
22
22
|
|
|
23
23
|
"""Module for initializing package-level imports for Ansys pre-commit hooks."""
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
import importlib.metadata as importlib_metadata
|
|
27
|
-
except ModuleNotFoundError: # pragma: no cover
|
|
28
|
-
import importlib_metadata
|
|
25
|
+
import pathlib
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
__all__ = ["__version__"]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
with open(pathlib.Path(__file__).parent / "VERSION", encoding="utf-8") as f:
|
|
31
|
+
__version__ = f.read().strip()
|
|
Binary file
|
ansys_pre_commit_hooks-0.4.2/src/ansys/pre_commit_hooks/__pycache__/tech_review.cpython-310.pyc
ADDED
|
Binary file
|
|
@@ -97,7 +97,10 @@ def set_lint_args(parser: argparse.ArgumentParser) -> argparse.Namespace:
|
|
|
97
97
|
parser.add_argument("--ignore_license_check", action="store_true")
|
|
98
98
|
parser.add_argument("--parser")
|
|
99
99
|
parser.add_argument("--no_multiprocessing", action="store_true")
|
|
100
|
-
|
|
100
|
+
|
|
101
|
+
# Option for printing lint output
|
|
102
|
+
mutex_group = parser.add_mutually_exclusive_group()
|
|
103
|
+
mutex_group.add_argument("-q", "--quiet", action="store_true")
|
|
101
104
|
|
|
102
105
|
return parser.parse_args()
|
|
103
106
|
|
|
@@ -241,7 +244,7 @@ def set_header_args(
|
|
|
241
244
|
args.year = [current_year]
|
|
242
245
|
else:
|
|
243
246
|
args.year = [int(start_year), current_year]
|
|
244
|
-
args.
|
|
247
|
+
args.copyright_prefix = "string-c"
|
|
245
248
|
args.copyright = [copyright]
|
|
246
249
|
args.merge_copyrights = True
|
|
247
250
|
args.template = template
|
|
@@ -697,7 +700,6 @@ def find_files_missing_header() -> int:
|
|
|
697
700
|
# year, style, copyright-style, template, exclude-year, merge-copyrights, single-line,
|
|
698
701
|
# multi-line, explicit-license, force-dot-license, recursive, no-replace,
|
|
699
702
|
# skip-unrecognized, and skip-existing
|
|
700
|
-
# header.add_arguments(parser)
|
|
701
703
|
_annotate.add_arguments(parser)
|
|
702
704
|
|
|
703
705
|
# Link the default template and/or license from the assets folder to your git repo.
|