ansys-pre-commit-hooks 0.4.4__tar.gz → 0.5.0__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.4 → ansys_pre_commit_hooks-0.5.0}/LICENSE +1 -1
- {ansys_pre_commit_hooks-0.4.4/src/ansys_pre_commit_hooks.egg-info → ansys_pre_commit_hooks-0.5.0}/PKG-INFO +26 -13
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/README.rst +5 -5
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/pyproject.toml +4 -4
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/setup.py +6 -6
- ansys_pre_commit_hooks-0.5.0/src/ansys/pre_commit_hooks/VERSION +1 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/__init__.py +1 -1
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/__pycache__/__init__.cpython-310.pyc +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/__pycache__/tech_review.cpython-310.pyc +0 -0
- ansys_pre_commit_hooks-0.5.0/src/ansys/pre_commit_hooks/add_license_headers.py +802 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/assets/LICENSES/MIT.txt +1 -1
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/tech_review.py +1 -1
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0/src/ansys_pre_commit_hooks.egg-info}/PKG-INFO +26 -13
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys_pre_commit_hooks.egg-info/SOURCES.txt +1 -1
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys_pre_commit_hooks.egg-info/requires.txt +6 -6
- ansys_pre_commit_hooks-0.4.4/tests/test_reuse.py → ansys_pre_commit_hooks-0.5.0/tests/test_add_license_headers.py +148 -64
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/tests/test_metadata.py +1 -1
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/tests/test_tech_review.py +1 -1
- ansys_pre_commit_hooks-0.4.4/src/ansys/pre_commit_hooks/VERSION +0 -1
- ansys_pre_commit_hooks-0.4.4/src/ansys/pre_commit_hooks/add_license_headers.py +0 -746
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/AUTHORS +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/MANIFEST.in +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/setup.cfg +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/assets/.reuse/templates/ansys.jinja2 +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/assets/licenses.json +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/AUTHORS +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/CODE_OF_CONDUCT.md +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/CONTRIBUTING.md +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/CONTRIBUTORS.md +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/LICENSE +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/README.md +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/README.rst +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys/pre_commit_hooks/templates/dependabot.yml +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys_pre_commit_hooks.egg-info/entry_points.txt +0 -0
- {ansys_pre_commit_hooks-0.4.4 → ansys_pre_commit_hooks-0.5.0}/src/ansys_pre_commit_hooks.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2023 -
|
|
3
|
+
Copyright (c) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: ansys-pre-commit-hooks
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: A Python wrapper to create Ansys-tailored pre-commit hooks
|
|
5
5
|
Home-page: https://github.com/ansys/pre-commit-hooks
|
|
6
6
|
Author: ANSYS, Inc.
|
|
@@ -24,22 +24,35 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
24
24
|
Requires-Python: >=3.9,<4
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
License-File: AUTHORS
|
|
27
|
-
Requires-Dist: GitPython==3.1.
|
|
27
|
+
Requires-Dist: GitPython==3.1.44
|
|
28
28
|
Requires-Dist: importlib-metadata==8.5.0
|
|
29
|
-
Requires-Dist: Jinja2==3.1.
|
|
30
|
-
Requires-Dist: reuse==
|
|
29
|
+
Requires-Dist: Jinja2==3.1.5
|
|
30
|
+
Requires-Dist: reuse==5.0.2
|
|
31
31
|
Requires-Dist: requests==2.32.3
|
|
32
32
|
Requires-Dist: semver==3.0.2
|
|
33
33
|
Requires-Dist: toml==0.10.2
|
|
34
34
|
Provides-Extra: doc
|
|
35
|
-
Requires-Dist: ansys-sphinx-theme[autoapi]==1.2.
|
|
35
|
+
Requires-Dist: ansys-sphinx-theme[autoapi]==1.2.4; extra == "doc"
|
|
36
36
|
Requires-Dist: numpydoc==1.8.0; extra == "doc"
|
|
37
37
|
Requires-Dist: sphinx==8.1.3; extra == "doc"
|
|
38
|
-
Requires-Dist: sphinx-autodoc-typehints==
|
|
38
|
+
Requires-Dist: sphinx-autodoc-typehints==3.0.0; extra == "doc"
|
|
39
39
|
Requires-Dist: sphinx-copybutton==0.5.1; extra == "doc"
|
|
40
40
|
Provides-Extra: tests
|
|
41
|
-
Requires-Dist: pytest==8.3.
|
|
41
|
+
Requires-Dist: pytest==8.3.4; extra == "tests"
|
|
42
42
|
Requires-Dist: pytest-cov==6.0.0; extra == "tests"
|
|
43
|
+
Dynamic: author
|
|
44
|
+
Dynamic: author-email
|
|
45
|
+
Dynamic: classifier
|
|
46
|
+
Dynamic: description
|
|
47
|
+
Dynamic: home-page
|
|
48
|
+
Dynamic: license
|
|
49
|
+
Dynamic: maintainer
|
|
50
|
+
Dynamic: maintainer-email
|
|
51
|
+
Dynamic: project-url
|
|
52
|
+
Dynamic: provides-extra
|
|
53
|
+
Dynamic: requires-dist
|
|
54
|
+
Dynamic: requires-python
|
|
55
|
+
Dynamic: summary
|
|
43
56
|
|
|
44
57
|
Ansys pre-commit hooks
|
|
45
58
|
======================
|
|
@@ -127,7 +140,7 @@ Set custom arguments
|
|
|
127
140
|
.. code:: yaml
|
|
128
141
|
|
|
129
142
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
130
|
-
rev: v0.
|
|
143
|
+
rev: v0.5.0
|
|
131
144
|
hooks:
|
|
132
145
|
- id: add-license-headers
|
|
133
146
|
args: ["--custom_copyright", "custom copyright phrase", "--custom_template", "template_name", "--custom_license", "license_name", "--ignore_license_check", "--start_year", "2023"]
|
|
@@ -172,7 +185,7 @@ the hook should run on, add the necessary regex to the ``files`` line in your
|
|
|
172
185
|
.. code:: yaml
|
|
173
186
|
|
|
174
187
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
175
|
-
rev: v0.
|
|
188
|
+
rev: v0.5.0
|
|
176
189
|
hooks:
|
|
177
190
|
- id: add-license-headers
|
|
178
191
|
files: '(src|examples|tests|newFolder)/.*\.(py|newExtension)|\.(proto|newExtension)'
|
|
@@ -185,7 +198,7 @@ In .pre-commit-config.yaml:
|
|
|
185
198
|
.. code:: yaml
|
|
186
199
|
|
|
187
200
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
188
|
-
rev: v0.
|
|
201
|
+
rev: v0.5.0
|
|
189
202
|
hooks:
|
|
190
203
|
- id: add-license-headers
|
|
191
204
|
exclude: |
|
|
@@ -238,7 +251,7 @@ Technical review hook in ``ansys/pre-commit-hooks``' .pre-commit-config.yaml fil
|
|
|
238
251
|
.. code:: yaml
|
|
239
252
|
|
|
240
253
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
241
|
-
rev: v0.
|
|
254
|
+
rev: v0.5.0
|
|
242
255
|
hooks:
|
|
243
256
|
- id: tech-review
|
|
244
257
|
args:
|
|
@@ -250,7 +263,7 @@ Technical review hook in ``PyMechanical``'s .pre-commit-config.yaml file:
|
|
|
250
263
|
.. code:: yaml
|
|
251
264
|
|
|
252
265
|
- repo: https://github.com/ansys/pre-commit-hooks
|
|
253
|
-
rev: v0.
|
|
266
|
+
rev: v0.5.0
|
|
254
267
|
hooks:
|
|
255
268
|
- id: tech-review
|
|
256
269
|
args:
|
|
@@ -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.
|
|
87
|
+
rev: v0.5.0
|
|
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.
|
|
132
|
+
rev: v0.5.0
|
|
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.
|
|
145
|
+
rev: v0.5.0
|
|
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.
|
|
198
|
+
rev: v0.5.0
|
|
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.
|
|
210
|
+
rev: v0.5.0
|
|
211
211
|
hooks:
|
|
212
212
|
- id: tech-review
|
|
213
213
|
args:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
requires = [
|
|
3
3
|
"setuptools>=42.0",
|
|
4
|
-
"GitPython==3.1.
|
|
5
|
-
"Jinja2==3.1.
|
|
6
|
-
"reuse==
|
|
4
|
+
"GitPython==3.1.44",
|
|
5
|
+
"Jinja2==3.1.5",
|
|
6
|
+
"reuse==5.0.2",
|
|
7
7
|
"requests==2.32.3",
|
|
8
8
|
"semver==3.0.2",
|
|
9
9
|
"toml==0.10.2",
|
|
@@ -36,7 +36,7 @@ testpaths = [
|
|
|
36
36
|
"tests",
|
|
37
37
|
]
|
|
38
38
|
markers = [
|
|
39
|
-
"
|
|
39
|
+
"add_license_headers: marks tests for add-license-headers hook",
|
|
40
40
|
"tech_review: marks tests for tech-review hook",
|
|
41
41
|
]
|
|
42
42
|
|
|
@@ -68,24 +68,24 @@ setup(
|
|
|
68
68
|
url="https://github.com/ansys/pre-commit-hooks",
|
|
69
69
|
python_requires=">=3.9,<4",
|
|
70
70
|
install_requires=[
|
|
71
|
-
"GitPython==3.1.
|
|
71
|
+
"GitPython==3.1.44",
|
|
72
72
|
"importlib-metadata==8.5.0",
|
|
73
|
-
"Jinja2==3.1.
|
|
74
|
-
"reuse==
|
|
73
|
+
"Jinja2==3.1.5",
|
|
74
|
+
"reuse==5.0.2",
|
|
75
75
|
"requests==2.32.3",
|
|
76
76
|
"semver==3.0.2",
|
|
77
77
|
"toml==0.10.2",
|
|
78
78
|
],
|
|
79
79
|
extras_require={
|
|
80
80
|
"doc": [
|
|
81
|
-
"ansys-sphinx-theme[autoapi]==1.2.
|
|
81
|
+
"ansys-sphinx-theme[autoapi]==1.2.4",
|
|
82
82
|
"numpydoc==1.8.0",
|
|
83
83
|
"sphinx==8.1.3",
|
|
84
|
-
"sphinx-autodoc-typehints==
|
|
84
|
+
"sphinx-autodoc-typehints==3.0.0",
|
|
85
85
|
"sphinx-copybutton==0.5.1",
|
|
86
86
|
],
|
|
87
87
|
"tests": [
|
|
88
|
-
"pytest==8.3.
|
|
88
|
+
"pytest==8.3.4",
|
|
89
89
|
"pytest-cov==6.0.0",
|
|
90
90
|
],
|
|
91
91
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.5.0
|
|
Binary file
|