ansys-pre-commit-hooks 0.8.0__tar.gz → 0.8.1__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.8.0 → ansys_pre_commit_hooks-0.8.1}/LICENSE +1 -1
- {ansys_pre_commit_hooks-0.8.0/src/ansys_pre_commit_hooks.egg-info → ansys_pre_commit_hooks-0.8.1}/PKG-INFO +38 -17
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/README.rst +28 -9
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/pyproject.toml +28 -17
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/setup.py +8 -6
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/VERSION +1 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/pyansys_quality_report.py +639 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/quality_rules/__init__.py +93 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/quality_rules/cicd.py +383 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/quality_rules/common.py +267 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/quality_rules/project_metadata.py +750 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys/pre_commit_hooks/quality_rules/readme.py +848 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1/src/ansys_pre_commit_hooks.egg-info}/PKG-INFO +38 -17
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys_pre_commit_hooks.egg-info/SOURCES.txt +9 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys_pre_commit_hooks.egg-info/entry_points.txt +1 -0
- ansys_pre_commit_hooks-0.8.1/src/ansys_pre_commit_hooks.egg-info/requires.txt +20 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/tests/test_add_license_headers.py +3 -3
- ansys_pre_commit_hooks-0.8.1/tests/test_cicd_rules.py +216 -0
- ansys_pre_commit_hooks-0.8.1/tests/test_project_metadata_rules.py +273 -0
- ansys_pre_commit_hooks-0.8.1/tests/test_pyansys_quality_report.py +804 -0
- ansys_pre_commit_hooks-0.8.0/src/ansys/pre_commit_hooks/VERSION +0 -1
- ansys_pre_commit_hooks-0.8.0/src/ansys_pre_commit_hooks.egg-info/requires.txt +0 -18
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/MANIFEST.in +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/setup.cfg +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/__init__.py +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/add_license_headers.py +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/assets/.reuse/templates/ansys.jinja2 +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/assets/LICENSES/Apache-2.0.txt +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/assets/LICENSES/MIT.txt +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/assets/licenses.json +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/tech_review.py +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/AUTHORS +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/CODE_OF_CONDUCT.md +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/CONTRIBUTING.md +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/CONTRIBUTORS.md +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/LICENSE +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/README.md +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/README.rst +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys/pre_commit_hooks/templates/dependabot.yml +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/src/ansys_pre_commit_hooks.egg-info/top_level.txt +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/tests/test_metadata.py +0 -0
- {ansys_pre_commit_hooks-0.8.0 → ansys_pre_commit_hooks-0.8.1}/tests/test_tech_review.py +0 -0
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ansys-pre-commit-hooks
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Home-page: https://github.com/ansys/pre-commit-hooks
|
|
5
5
|
Author: Synopsys, Inc. and ANSYS, Inc.
|
|
6
6
|
Author-email: "Synopsys, Inc. and ANSYS, Inc." <pyansys-core@synopsys.com>
|
|
@@ -24,21 +24,23 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
24
24
|
Requires-Python: >=3.10,<4
|
|
25
25
|
Description-Content-Type: text/x-rst
|
|
26
26
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
27
|
+
Requires-Dist: click==8.5.0
|
|
28
|
+
Requires-Dist: GitPython==3.2.1
|
|
29
|
+
Requires-Dist: importlib-metadata==9.0.1
|
|
29
30
|
Requires-Dist: Jinja2==3.1.6
|
|
30
|
-
Requires-Dist:
|
|
31
|
+
Requires-Dist: packaging==26.3
|
|
32
|
+
Requires-Dist: reuse==6.3.0
|
|
31
33
|
Requires-Dist: requests==2.34.2
|
|
32
|
-
Requires-Dist: semver==3.0
|
|
34
|
+
Requires-Dist: semver==3.1.0
|
|
33
35
|
Requires-Dist: toml==0.10.2
|
|
34
36
|
Provides-Extra: doc
|
|
35
|
-
Requires-Dist: ansys-sphinx-theme[autoapi]==1.
|
|
36
|
-
Requires-Dist: numpydoc==1.
|
|
37
|
+
Requires-Dist: ansys-sphinx-theme[autoapi]==1.9.0; extra == "doc"
|
|
38
|
+
Requires-Dist: numpydoc==1.11.0; extra == "doc"
|
|
37
39
|
Requires-Dist: sphinx==8.2.3; extra == "doc"
|
|
38
40
|
Requires-Dist: sphinx-autodoc-typehints==3.1.0; extra == "doc"
|
|
39
41
|
Requires-Dist: sphinx-copybutton==0.5.2; extra == "doc"
|
|
40
42
|
Provides-Extra: tests
|
|
41
|
-
Requires-Dist: pytest==9.
|
|
43
|
+
Requires-Dist: pytest==9.1.1; extra == "tests"
|
|
42
44
|
Requires-Dist: pytest-cov==7.1.0; extra == "tests"
|
|
43
45
|
Dynamic: author
|
|
44
46
|
Dynamic: classifier
|
|
@@ -49,7 +51,7 @@ Dynamic: requires-python
|
|
|
49
51
|
|
|
50
52
|
Ansys pre-commit hooks
|
|
51
53
|
======================
|
|
52
|
-
|pyansys| |python| |pypi| |GH-CI| |MIT| |
|
|
54
|
+
|pyansys| |python| |pypi| |GH-CI| |MIT| |ruff| |pre-commit-ci|
|
|
53
55
|
|
|
54
56
|
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
|
|
55
57
|
:target: https://docs.pyansys.com/
|
|
@@ -71,9 +73,9 @@ Ansys pre-commit hooks
|
|
|
71
73
|
:target: https://opensource.org/licenses/MIT
|
|
72
74
|
:alt: MIT
|
|
73
75
|
|
|
74
|
-
.. |
|
|
75
|
-
:target: https://github.com/
|
|
76
|
-
:alt:
|
|
76
|
+
.. |ruff| image:: https://img.shields.io/badge/code%20style-ruff-D7FF64.svg?style=flat
|
|
77
|
+
:target: https://github.com/astral-sh/ruff
|
|
78
|
+
:alt: Ruff
|
|
77
79
|
|
|
78
80
|
.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/ansys/pre-commit-hooks/main.svg
|
|
79
81
|
:target: https://results.pre-commit.ci/latest/github/ansys/pre-commit-hooks/main
|
|
@@ -87,6 +89,27 @@ The following hooks are currently available:
|
|
|
87
89
|
have ``REUSE`` implemented in your repository.
|
|
88
90
|
* ``tech-review``: Do a technical review of your repository according to
|
|
89
91
|
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
92
|
+
* ``pyansys-quality-report``: Check PyAnsys quality
|
|
93
|
+
with selectable rules and a machine-readable JSON report.
|
|
94
|
+
|
|
95
|
+
Configure the quality report in the ``.pre-commit-config.yaml`` file:
|
|
96
|
+
|
|
97
|
+
.. code:: yaml
|
|
98
|
+
|
|
99
|
+
- repo: https://github.com/ansys/pre-commit-hooks
|
|
100
|
+
rev: v0.8.1
|
|
101
|
+
hooks:
|
|
102
|
+
- id: pyansys-quality-report
|
|
103
|
+
args: [--show-all]
|
|
104
|
+
verbose: true
|
|
105
|
+
|
|
106
|
+
Run ``pre-commit run pyansys-quality-report --all-files`` (or ``prek run
|
|
107
|
+
pyansys-quality-report --all-files``) to show warnings and errors.
|
|
108
|
+
Use ``--show-all`` to include passing checks, ``--check RM003`` to select a
|
|
109
|
+
rule, ``--ignore RM004`` to omit one, ``--color never`` for plain output, or
|
|
110
|
+
``--json`` for JSON output. Colors are enabled by default, including for
|
|
111
|
+
captured output. The current rules and options are documented in the
|
|
112
|
+
`quality report guide <https://pre-commit-hooks.docs.ansys.com/version/stable/getting-started/pyansys-quality-report/index.html>`_.
|
|
90
113
|
|
|
91
114
|
How to install
|
|
92
115
|
--------------
|
|
@@ -199,8 +222,8 @@ These environment commands are provided:
|
|
|
199
222
|
Raw testing
|
|
200
223
|
^^^^^^^^^^^
|
|
201
224
|
|
|
202
|
-
If required, you can
|
|
203
|
-
|
|
225
|
+
If required, you can call ``ruff check --fix .`` and ``ruff format .`` with
|
|
226
|
+
`Ruff`_, or unit testing commands, such as `pytest`_, from the command line.
|
|
204
227
|
However, calling these commands does not guarantee that your project is
|
|
205
228
|
being tested in an isolated environment, which is the reason why tools like
|
|
206
229
|
``tox`` exist.
|
|
@@ -249,9 +272,7 @@ the building requirements and then execute the build module with these commands:
|
|
|
249
272
|
|
|
250
273
|
|
|
251
274
|
.. LINKS AND REFERENCES
|
|
252
|
-
..
|
|
253
|
-
.. _flake8: https://flake8.pycqa.org/en/latest/
|
|
254
|
-
.. _isort: https://github.com/PyCQA/isort
|
|
275
|
+
.. _Ruff: https://docs.astral.sh/ruff/
|
|
255
276
|
.. _pip: https://pypi.org/project/pip/
|
|
256
277
|
.. _pre-commit: https://pre-commit.com/
|
|
257
278
|
.. _PyAnsys Developer's Guide: https://dev.docs.pyansys.com/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Ansys pre-commit hooks
|
|
2
2
|
======================
|
|
3
|
-
|pyansys| |python| |pypi| |GH-CI| |MIT| |
|
|
3
|
+
|pyansys| |python| |pypi| |GH-CI| |MIT| |ruff| |pre-commit-ci|
|
|
4
4
|
|
|
5
5
|
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
|
|
6
6
|
:target: https://docs.pyansys.com/
|
|
@@ -22,9 +22,9 @@ Ansys pre-commit hooks
|
|
|
22
22
|
:target: https://opensource.org/licenses/MIT
|
|
23
23
|
:alt: MIT
|
|
24
24
|
|
|
25
|
-
.. |
|
|
26
|
-
:target: https://github.com/
|
|
27
|
-
:alt:
|
|
25
|
+
.. |ruff| image:: https://img.shields.io/badge/code%20style-ruff-D7FF64.svg?style=flat
|
|
26
|
+
:target: https://github.com/astral-sh/ruff
|
|
27
|
+
:alt: Ruff
|
|
28
28
|
|
|
29
29
|
.. |pre-commit-ci| image:: https://results.pre-commit.ci/badge/github/ansys/pre-commit-hooks/main.svg
|
|
30
30
|
:target: https://results.pre-commit.ci/latest/github/ansys/pre-commit-hooks/main
|
|
@@ -38,6 +38,27 @@ The following hooks are currently available:
|
|
|
38
38
|
have ``REUSE`` implemented in your repository.
|
|
39
39
|
* ``tech-review``: Do a technical review of your repository according to
|
|
40
40
|
`Ansys repository requirements <https://dev.docs.pyansys.com/packaging/structure.html>`_
|
|
41
|
+
* ``pyansys-quality-report``: Check PyAnsys quality
|
|
42
|
+
with selectable rules and a machine-readable JSON report.
|
|
43
|
+
|
|
44
|
+
Configure the quality report in the ``.pre-commit-config.yaml`` file:
|
|
45
|
+
|
|
46
|
+
.. code:: yaml
|
|
47
|
+
|
|
48
|
+
- repo: https://github.com/ansys/pre-commit-hooks
|
|
49
|
+
rev: v0.8.1
|
|
50
|
+
hooks:
|
|
51
|
+
- id: pyansys-quality-report
|
|
52
|
+
args: [--show-all]
|
|
53
|
+
verbose: true
|
|
54
|
+
|
|
55
|
+
Run ``pre-commit run pyansys-quality-report --all-files`` (or ``prek run
|
|
56
|
+
pyansys-quality-report --all-files``) to show warnings and errors.
|
|
57
|
+
Use ``--show-all`` to include passing checks, ``--check RM003`` to select a
|
|
58
|
+
rule, ``--ignore RM004`` to omit one, ``--color never`` for plain output, or
|
|
59
|
+
``--json`` for JSON output. Colors are enabled by default, including for
|
|
60
|
+
captured output. The current rules and options are documented in the
|
|
61
|
+
`quality report guide <https://pre-commit-hooks.docs.ansys.com/version/stable/getting-started/pyansys-quality-report/index.html>`_.
|
|
41
62
|
|
|
42
63
|
How to install
|
|
43
64
|
--------------
|
|
@@ -150,8 +171,8 @@ These environment commands are provided:
|
|
|
150
171
|
Raw testing
|
|
151
172
|
^^^^^^^^^^^
|
|
152
173
|
|
|
153
|
-
If required, you can
|
|
154
|
-
|
|
174
|
+
If required, you can call ``ruff check --fix .`` and ``ruff format .`` with
|
|
175
|
+
`Ruff`_, or unit testing commands, such as `pytest`_, from the command line.
|
|
155
176
|
However, calling these commands does not guarantee that your project is
|
|
156
177
|
being tested in an isolated environment, which is the reason why tools like
|
|
157
178
|
``tox`` exist.
|
|
@@ -200,9 +221,7 @@ the building requirements and then execute the build module with these commands:
|
|
|
200
221
|
|
|
201
222
|
|
|
202
223
|
.. LINKS AND REFERENCES
|
|
203
|
-
..
|
|
204
|
-
.. _flake8: https://flake8.pycqa.org/en/latest/
|
|
205
|
-
.. _isort: https://github.com/PyCQA/isort
|
|
224
|
+
.. _Ruff: https://docs.astral.sh/ruff/
|
|
206
225
|
.. _pip: https://pypi.org/project/pip/
|
|
207
226
|
.. _pre-commit: https://pre-commit.com/
|
|
208
227
|
.. _PyAnsys Developer's Guide: https://dev.docs.pyansys.com/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
requires = [
|
|
3
3
|
"setuptools>=65.5.1",
|
|
4
|
-
"GitPython==3.1
|
|
4
|
+
"GitPython==3.2.1",
|
|
5
5
|
"Jinja2==3.1.6",
|
|
6
|
-
"reuse==6.
|
|
6
|
+
"reuse==6.3.0",
|
|
7
7
|
"requests==2.34.2",
|
|
8
|
-
"semver==3.0
|
|
8
|
+
"semver==3.1.0",
|
|
9
9
|
"toml==0.10.2",
|
|
10
10
|
"wheel",
|
|
11
11
|
]
|
|
@@ -20,12 +20,14 @@ license-files = ["LICENSE"]
|
|
|
20
20
|
authors = [{ name = "Synopsys, Inc. and ANSYS, Inc.", email = "pyansys-core@synopsys.com" }]
|
|
21
21
|
maintainers = [{ name = "Synopsys, Inc. and ANSYS, Inc.", email = "pyansys-core@synopsys.com" }]
|
|
22
22
|
dependencies = [
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"click==8.5.0",
|
|
24
|
+
"GitPython==3.2.1",
|
|
25
|
+
"importlib-metadata==9.0.1",
|
|
25
26
|
"Jinja2==3.1.6",
|
|
26
|
-
"
|
|
27
|
+
"packaging==26.3",
|
|
28
|
+
"reuse==6.3.0",
|
|
27
29
|
"requests==2.34.2",
|
|
28
|
-
"semver==3.0
|
|
30
|
+
"semver==3.1.0",
|
|
29
31
|
"toml==0.10.2",
|
|
30
32
|
]
|
|
31
33
|
|
|
@@ -47,14 +49,14 @@ classifiers = {file = """
|
|
|
47
49
|
|
|
48
50
|
[project.optional-dependencies]
|
|
49
51
|
doc = [
|
|
50
|
-
"ansys-sphinx-theme[autoapi]==1.
|
|
51
|
-
"numpydoc==1.
|
|
52
|
+
"ansys-sphinx-theme[autoapi]==1.9.0",
|
|
53
|
+
"numpydoc==1.11.0",
|
|
52
54
|
"sphinx==8.2.3",
|
|
53
55
|
"sphinx-autodoc-typehints==3.1.0",
|
|
54
56
|
"sphinx-copybutton==0.5.2",
|
|
55
57
|
]
|
|
56
58
|
tests = [
|
|
57
|
-
"pytest==9.
|
|
59
|
+
"pytest==9.1.1",
|
|
58
60
|
"pytest-cov==7.1.0",
|
|
59
61
|
]
|
|
60
62
|
|
|
@@ -66,14 +68,24 @@ Documentation = "https://pre-commit-hooks.docs.pyansys.com"
|
|
|
66
68
|
Releases = "https://github.com/ansys/pre-commit-hooks/releases"
|
|
67
69
|
Changelog = "https://github.com/ansys/pre-commit-hooks/blob/main/doc/source/changelog.rst"
|
|
68
70
|
|
|
69
|
-
[tool.
|
|
71
|
+
[tool.ruff]
|
|
70
72
|
line-length = 100
|
|
73
|
+
target-version = "py310"
|
|
74
|
+
src = ["doc", "src", "tests"]
|
|
75
|
+
extend-exclude = ["venv", "doc/_build"]
|
|
71
76
|
|
|
72
|
-
[tool.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
[tool.ruff.lint]
|
|
78
|
+
select = ["D", "E501", "F401", "F403", "I"]
|
|
79
|
+
|
|
80
|
+
[tool.ruff.lint.per-file-ignores]
|
|
81
|
+
"tests/**" = ["D"]
|
|
82
|
+
"__init__.py" = ["E501", "F401", "F403"]
|
|
83
|
+
|
|
84
|
+
[tool.ruff.lint.isort]
|
|
85
|
+
force-sort-within-sections = true
|
|
86
|
+
|
|
87
|
+
[tool.ruff.lint.pydocstyle]
|
|
88
|
+
convention = "pep257"
|
|
77
89
|
|
|
78
90
|
[tool.codespell]
|
|
79
91
|
ignore-words = "doc/styles/config/vocabularies/ANSYS/accept.txt"
|
|
@@ -148,4 +160,3 @@ showcontent = true
|
|
|
148
160
|
directory = "changed"
|
|
149
161
|
name = "Changed"
|
|
150
162
|
showcontent = true
|
|
151
|
-
|
|
@@ -39,25 +39,26 @@ setup(
|
|
|
39
39
|
url="https://github.com/ansys/pre-commit-hooks",
|
|
40
40
|
python_requires=">=3.10,<4",
|
|
41
41
|
install_requires=[
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"click==8.5.0",
|
|
43
|
+
"GitPython==3.2.1",
|
|
44
|
+
"importlib-metadata==9.0.1",
|
|
44
45
|
"Jinja2==3.1.6",
|
|
45
46
|
"reuse==6.2.0",
|
|
46
47
|
"requests==2.34.2",
|
|
47
|
-
"semver==3.0
|
|
48
|
+
"semver==3.1.0",
|
|
48
49
|
"toml==0.10.2",
|
|
49
50
|
],
|
|
50
51
|
extras_require={
|
|
51
52
|
"doc": [
|
|
52
|
-
"ansys-sphinx-theme[autoapi]==1.
|
|
53
|
-
"numpydoc==1.
|
|
53
|
+
"ansys-sphinx-theme[autoapi]==1.9.0",
|
|
54
|
+
"numpydoc==1.11.0",
|
|
54
55
|
"sphinx==8.2.3",
|
|
55
56
|
"sphinx-autodoc-typehints==3.1.0",
|
|
56
57
|
"sphinx-copybutton==0.5.2",
|
|
57
58
|
"sphinx_design==0.6.1",
|
|
58
59
|
],
|
|
59
60
|
"tests": [
|
|
60
|
-
"pytest==9.
|
|
61
|
+
"pytest==9.1.1",
|
|
61
62
|
"pytest-cov==7.1.0",
|
|
62
63
|
],
|
|
63
64
|
},
|
|
@@ -74,6 +75,7 @@ setup(
|
|
|
74
75
|
"console_scripts": [
|
|
75
76
|
"add-license-headers=ansys.pre_commit_hooks.add_license_headers:main",
|
|
76
77
|
"tech-review=ansys.pre_commit_hooks.tech_review:main",
|
|
78
|
+
"pyansys-quality-report=ansys.pre_commit_hooks.pyansys_quality_report:main",
|
|
77
79
|
],
|
|
78
80
|
},
|
|
79
81
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.8.1
|