ansys-pre-commit-hooks 0.5.2__tar.gz → 0.7.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.
Files changed (38) hide show
  1. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/LICENSE +1 -1
  2. {ansys_pre_commit_hooks-0.5.2/src/ansys_pre_commit_hooks.egg-info → ansys_pre_commit_hooks-0.7.0}/PKG-INFO +24 -32
  3. ansys_pre_commit_hooks-0.7.0/pyproject.toml +145 -0
  4. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/setup.py +17 -48
  5. ansys_pre_commit_hooks-0.7.0/src/ansys/pre_commit_hooks/VERSION +1 -0
  6. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/__init__.py +1 -1
  7. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/add_license_headers.py +277 -108
  8. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/assets/.reuse/templates/ansys.jinja2 +12 -0
  9. ansys_pre_commit_hooks-0.7.0/src/ansys/pre_commit_hooks/assets/LICENSES/Apache-2.0.txt +202 -0
  10. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/assets/licenses.json +68 -1
  11. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/tech_review.py +15 -8
  12. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/dependabot.yml +4 -0
  13. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0/src/ansys_pre_commit_hooks.egg-info}/PKG-INFO +24 -32
  14. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys_pre_commit_hooks.egg-info/SOURCES.txt +1 -3
  15. ansys_pre_commit_hooks-0.7.0/src/ansys_pre_commit_hooks.egg-info/requires.txt +18 -0
  16. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/tests/test_add_license_headers.py +232 -113
  17. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/tests/test_metadata.py +1 -1
  18. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/tests/test_tech_review.py +1 -1
  19. ansys_pre_commit_hooks-0.5.2/AUTHORS +0 -12
  20. ansys_pre_commit_hooks-0.5.2/pyproject.toml +0 -90
  21. ansys_pre_commit_hooks-0.5.2/src/ansys/pre_commit_hooks/VERSION +0 -1
  22. ansys_pre_commit_hooks-0.5.2/src/ansys/pre_commit_hooks/__pycache__/__init__.cpython-312.pyc +0 -0
  23. ansys_pre_commit_hooks-0.5.2/src/ansys/pre_commit_hooks/__pycache__/tech_review.cpython-312.pyc +0 -0
  24. ansys_pre_commit_hooks-0.5.2/src/ansys_pre_commit_hooks.egg-info/requires.txt +0 -19
  25. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/MANIFEST.in +0 -0
  26. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/README.rst +0 -0
  27. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/setup.cfg +0 -0
  28. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/assets/LICENSES/MIT.txt +0 -0
  29. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/AUTHORS +0 -0
  30. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/CODE_OF_CONDUCT.md +0 -0
  31. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/CONTRIBUTING.md +0 -0
  32. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/CONTRIBUTORS.md +0 -0
  33. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/LICENSE +0 -0
  34. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/README.md +0 -0
  35. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys/pre_commit_hooks/templates/README.rst +0 -0
  36. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
  37. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.0}/src/ansys_pre_commit_hooks.egg-info/entry_points.txt +0 -0
  38. {ansys_pre_commit_hooks-0.5.2 → ansys_pre_commit_hooks-0.7.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 - 2025 ANSYS, Inc. and/or its affiliates.
3
+ Copyright (c) 2023 - 2026 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,59 +1,51 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: ansys-pre-commit-hooks
3
- Version: 0.5.2
4
- Summary: A Python wrapper to create Ansys-tailored pre-commit hooks
3
+ Version: 0.7.0
5
4
  Home-page: https://github.com/ansys/pre-commit-hooks
6
5
  Author: ANSYS, Inc.
7
- Author-email: pyansys.core@ansys.com
6
+ Author-email: "ANSYS, Inc." <pyansys.core@ansys.com>
8
7
  Maintainer: ANSYS, Inc.
9
- Maintainer-email: pyansys.core@ansys.com
10
- License: MIT
8
+ Maintainer-email: "ANSYS, Inc." <pyansys.core@ansys.com>
9
+ License-Expression: MIT
11
10
  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
11
+ Project-URL: Issues, https://github.com/ansys/pre-commit-hooks/issues
12
+ Project-URL: Discussions, https://github.com/ansys/pre-commit-hooks/discussions
14
13
  Project-URL: Documentation, https://pre-commit-hooks.docs.pyansys.com
14
+ Project-URL: Releases, https://github.com/ansys/pre-commit-hooks/releases
15
+ Project-URL: Changelog, https://github.com/ansys/pre-commit-hooks/blob/main/doc/source/changelog.rst
15
16
  Classifier: Development Status :: 4 - Beta
16
17
  Classifier: Intended Audience :: Science/Research
17
18
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
- Classifier: License :: OSI Approved :: MIT License
19
19
  Classifier: Operating System :: OS Independent
20
- Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
24
- Requires-Python: >=3.9,<4
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Requires-Python: >=3.10,<4
25
+ Description-Content-Type: text/x-rst
25
26
  License-File: LICENSE
26
- License-File: AUTHORS
27
- Requires-Dist: GitPython==3.1.44
28
- Requires-Dist: importlib-metadata==8.6.1
29
- Requires-Dist: Jinja2==3.1.5
30
- Requires-Dist: reuse==5.0.2
31
- Requires-Dist: requests==2.32.3
27
+ Requires-Dist: GitPython==3.1.46
28
+ Requires-Dist: importlib-metadata==9.0.0
29
+ Requires-Dist: Jinja2==3.1.6
30
+ Requires-Dist: reuse==6.2.0
31
+ Requires-Dist: requests==2.33.1
32
32
  Requires-Dist: semver==3.0.4
33
33
  Requires-Dist: toml==0.10.2
34
34
  Provides-Extra: doc
35
- Requires-Dist: ansys-sphinx-theme[autoapi]==1.3.2; extra == "doc"
36
- Requires-Dist: numpydoc==1.8.0; extra == "doc"
37
- Requires-Dist: sphinx==8.2.1; extra == "doc"
35
+ Requires-Dist: ansys-sphinx-theme[autoapi]==1.7.2; extra == "doc"
36
+ Requires-Dist: numpydoc==1.10.0; extra == "doc"
37
+ Requires-Dist: sphinx==8.2.3; extra == "doc"
38
38
  Requires-Dist: sphinx-autodoc-typehints==3.1.0; extra == "doc"
39
- Requires-Dist: sphinx-copybutton==0.5.1; extra == "doc"
40
- Requires-Dist: sphinx_design==0.6.1; extra == "doc"
39
+ Requires-Dist: sphinx-copybutton==0.5.2; extra == "doc"
41
40
  Provides-Extra: tests
42
- Requires-Dist: pytest==8.3.4; extra == "tests"
43
- Requires-Dist: pytest-cov==6.0.0; extra == "tests"
41
+ Requires-Dist: pytest==9.0.3; extra == "tests"
42
+ Requires-Dist: pytest-cov==7.1.0; extra == "tests"
44
43
  Dynamic: author
45
- Dynamic: author-email
46
44
  Dynamic: classifier
47
- Dynamic: description
48
45
  Dynamic: home-page
49
- Dynamic: license
46
+ Dynamic: license-file
50
47
  Dynamic: maintainer
51
- Dynamic: maintainer-email
52
- Dynamic: project-url
53
- Dynamic: provides-extra
54
- Dynamic: requires-dist
55
48
  Dynamic: requires-python
56
- Dynamic: summary
57
49
 
58
50
  Ansys pre-commit hooks
59
51
  ======================
@@ -0,0 +1,145 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=65.5.1",
4
+ "GitPython==3.1.46",
5
+ "Jinja2==3.1.6",
6
+ "reuse==6.2.0",
7
+ "requests==2.33.1",
8
+ "semver==3.0.4",
9
+ "toml==0.10.2",
10
+ "wheel",
11
+ ]
12
+ build-backend = "setuptools.build_meta"
13
+
14
+ [project]
15
+ name = "ansys-pre-commit-hooks"
16
+ dynamic = ["version", "classifiers", "description", "readme", "scripts"]
17
+ requires-python = ">=3.10,<4"
18
+ license = "MIT"
19
+ license-files = ["LICENSE"]
20
+ authors = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
21
+ maintainers = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }]
22
+ dependencies = [
23
+ "GitPython==3.1.46",
24
+ "importlib-metadata==9.0.0",
25
+ "Jinja2==3.1.6",
26
+ "reuse==6.2.0",
27
+ "requests==2.33.1",
28
+ "semver==3.0.4",
29
+ "toml==0.10.2",
30
+ ]
31
+
32
+ [tool.setuptools.dynamic]
33
+ version = {file = "src/ansys/pre_commit_hooks/VERSION"}
34
+ readme = {file = ["README.rst"]}
35
+ description = {file = "A Python wrapper to create Ansys-tailored pre-commit hooks"}
36
+ classifiers = {file = """
37
+ "Development Status :: 4 - Beta",
38
+ "Intended Audience :: Science/Research",
39
+ "Topic :: Scientific/Engineering :: Information Analysis",
40
+ "Operating System :: OS Independent",
41
+ "Programming Language :: Python :: 3.10",
42
+ "Programming Language :: Python :: 3.11",
43
+ "Programming Language :: Python :: 3.12",
44
+ "Programming Language :: Python :: 3.13",
45
+ "Programming Language :: Python :: 3.14",
46
+ """}
47
+
48
+ [project.optional-dependencies]
49
+ doc = [
50
+ "ansys-sphinx-theme[autoapi]==1.7.2",
51
+ "numpydoc==1.10.0",
52
+ "sphinx==8.2.3",
53
+ "sphinx-autodoc-typehints==3.1.0",
54
+ "sphinx-copybutton==0.5.2",
55
+ ]
56
+ tests = [
57
+ "pytest==9.0.3",
58
+ "pytest-cov==7.1.0",
59
+ ]
60
+
61
+ [project.urls]
62
+ Source = "https://github.com/ansys/pre-commit-hooks/"
63
+ Issues = "https://github.com/ansys/pre-commit-hooks/issues"
64
+ Discussions = "https://github.com/ansys/pre-commit-hooks/discussions"
65
+ Documentation = "https://pre-commit-hooks.docs.pyansys.com"
66
+ Releases = "https://github.com/ansys/pre-commit-hooks/releases"
67
+ Changelog = "https://github.com/ansys/pre-commit-hooks/blob/main/doc/source/changelog.rst"
68
+
69
+ [tool.black]
70
+ line-length = 100
71
+
72
+ [tool.isort]
73
+ profile = "black"
74
+ force_sort_within_sections = true
75
+ line_length = 100
76
+ src_paths = ["doc", "src", "tests"]
77
+
78
+ [tool.codespell]
79
+ ignore-words = "doc/styles/config/vocabularies/ANSYS/accept.txt"
80
+
81
+ [tool.coverage.run]
82
+ source = ["ansys.pre_commit_hooks"]
83
+
84
+ [tool.coverage.report]
85
+ show_missing = true
86
+
87
+ [tool.pytest.ini_options]
88
+ minversion = "7.1"
89
+ addopts = "--cov=ansys.pre_commit_hooks --cov-report term-missing -vv"
90
+ testpaths = [
91
+ "tests",
92
+ ]
93
+ markers = [
94
+ "add_license_headers: marks tests for add-license-headers hook",
95
+ "tech_review: marks tests for tech-review hook",
96
+ ]
97
+
98
+ [tool.towncrier]
99
+ package = "ansys.pre_commit_hooks"
100
+ directory = "doc/changelog.d"
101
+ filename = "doc/source/changelog.rst"
102
+ start_string = ".. towncrier release notes start\n"
103
+ template = "doc/changelog.d/changelog_template.jinja"
104
+ title_format = "`{version} <https://github.com/ansys/pre-commit-hooks/releases/tag/v{version}>`_ - {project_date}"
105
+ issue_format = "`#{issue} <https://github.com/ansys/pre-commit-hooks/pull/{issue}>`_"
106
+
107
+ [[tool.towncrier.type]]
108
+ directory = "added"
109
+ name = "Added"
110
+ showcontent = true
111
+
112
+ [[tool.towncrier.type]]
113
+ directory = "changed"
114
+ name = "Changed"
115
+ showcontent = true
116
+
117
+ [[tool.towncrier.type]]
118
+ directory = "fixed"
119
+ name = "Fixed"
120
+ showcontent = true
121
+
122
+ [[tool.towncrier.type]]
123
+ directory = "dependencies"
124
+ name = "Dependencies"
125
+ showcontent = true
126
+
127
+ [[tool.towncrier.type]]
128
+ directory = "miscellaneous"
129
+ name = "Miscellaneous"
130
+ showcontent = true
131
+
132
+ [[tool.towncrier.type]]
133
+ directory = "documentation"
134
+ name = "Documentation"
135
+ showcontent = true
136
+
137
+ [[tool.towncrier.type]]
138
+ directory = "maintenance"
139
+ name = "Maintenance"
140
+ showcontent = true
141
+
142
+ [[tool.towncrier.type]]
143
+ directory = "test"
144
+ name = "Test"
145
+ showcontent = true
@@ -1,36 +1,8 @@
1
1
  """Installation file for ansys-pre-commit-hooks."""
2
2
 
3
3
  import os
4
- import sys
5
4
 
6
5
  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
6
 
35
7
  HERE = os.path.abspath(os.path.dirname(__file__))
36
8
  with open(os.path.join(HERE, "src", "ansys", "pre_commit_hooks", "VERSION"), encoding="utf-8") as f:
@@ -58,49 +30,46 @@ setup(
58
30
  "Development Status :: 4 - Beta",
59
31
  "Intended Audience :: Science/Research",
60
32
  "Topic :: Scientific/Engineering :: Information Analysis",
61
- "License :: OSI Approved :: MIT License",
62
33
  "Operating System :: OS Independent",
63
- "Programming Language :: Python :: 3.9",
64
34
  "Programming Language :: Python :: 3.10",
65
35
  "Programming Language :: Python :: 3.11",
66
36
  "Programming Language :: Python :: 3.12",
37
+ "Programming Language :: Python :: 3.13",
67
38
  ],
68
39
  url="https://github.com/ansys/pre-commit-hooks",
69
- python_requires=">=3.9,<4",
40
+ python_requires=">=3.10,<4",
70
41
  install_requires=[
71
- "GitPython==3.1.44",
72
- "importlib-metadata==8.6.1",
73
- "Jinja2==3.1.5",
74
- "reuse==5.0.2",
75
- "requests==2.32.3",
42
+ "GitPython==3.1.46",
43
+ "importlib-metadata==9.0.0",
44
+ "Jinja2==3.1.6",
45
+ "reuse==6.2.0",
46
+ "requests==2.33.1",
76
47
  "semver==3.0.4",
77
48
  "toml==0.10.2",
78
49
  ],
79
50
  extras_require={
80
51
  "doc": [
81
- "ansys-sphinx-theme[autoapi]==1.3.2",
82
- "numpydoc==1.8.0",
83
- "sphinx==8.2.1",
52
+ "ansys-sphinx-theme[autoapi]==1.7.2",
53
+ "numpydoc==1.10.0",
54
+ "sphinx==8.2.3",
84
55
  "sphinx-autodoc-typehints==3.1.0",
85
- "sphinx-copybutton==0.5.1",
56
+ "sphinx-copybutton==0.5.2",
86
57
  "sphinx_design==0.6.1",
87
58
  ],
88
59
  "tests": [
89
- "pytest==8.3.4",
90
- "pytest-cov==6.0.0",
60
+ "pytest==9.0.3",
61
+ "pytest-cov==7.1.0",
91
62
  ],
92
63
  },
93
64
  project_urls={
94
65
  "Source": "https://github.com/ansys/pre-commit-hooks/",
95
- "Tracker": "https://github.com/ansys/pre-commit-hooks/issues",
96
- "Homepage": "https://github.com/ansys/pre-commit-hooks",
66
+ "Issues": "https://github.com/ansys/pre-commit-hooks/issues",
67
+ "Discussions": "https://github.com/ansys/pre-commit-hooks/discussions",
97
68
  "Documentation": "https://pre-commit-hooks.docs.pyansys.com",
69
+ "Releases": "https://github.com/ansys/pre-commit-hooks/releases",
70
+ "Changelog": "https://github.com/ansys/pre-commit-hooks/blob/main/doc/source/changelog.rst",
98
71
  },
99
72
  include_package_data=True,
100
- cmdclass={
101
- "develop": CustomDevelopCommand,
102
- "install": CustomInstallCommand,
103
- },
104
73
  entry_points={
105
74
  "console_scripts": [
106
75
  "add-license-headers=ansys.pre_commit_hooks.add_license_headers:main",
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
1
+ # Copyright (C) 2023 - 2026 ANSYS, Inc. and/or its affiliates.
2
2
  # SPDX-License-Identifier: MIT
3
3
  #
4
4
  #