pyproject-pre-commit 0.5.0__tar.gz → 0.5.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.
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.pre-commit-config.yaml +9 -1
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.pre-commit-hooks.yaml +12 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/PKG-INFO +3 -1
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/pyproject.toml +59 -48
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/tests/test_version.py +2 -2
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/uv.lock +512 -439
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.github/FUNDING.yml +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.github/workflows/pypi.yml +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.github/workflows/test.yml +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.gitignore +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/.mise.toml +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/LICENSE +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/README.md +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/renovate.json +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/src/pyproject_pre_commit/__init__.py +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/src/pyproject_pre_commit/__version__.py +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/src/pyproject_pre_commit/py.typed +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/src/pyproject_pre_commit/pyproject_pre_commit.py +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/tests/__init__.py +0 -0
- {pyproject_pre_commit-0.5.0 → pyproject_pre_commit-0.5.2}/tests/test_pyproject_pre_commit.py +0 -0
|
@@ -169,6 +169,14 @@ repos:
|
|
|
169
169
|
- pyi
|
|
170
170
|
require_serial: true
|
|
171
171
|
pass_filenames: false
|
|
172
|
+
- id: ty
|
|
173
|
+
# https://github.com/astral-sh/ty
|
|
174
|
+
name: ty
|
|
175
|
+
entry: ty check
|
|
176
|
+
language: system
|
|
177
|
+
types_or:
|
|
178
|
+
- python
|
|
179
|
+
- pyi
|
|
172
180
|
- id: numpydoc-validation
|
|
173
181
|
# https://github.com/numpy/numpydoc
|
|
174
182
|
name: numpydoc-validation
|
|
@@ -221,7 +229,7 @@ repos:
|
|
|
221
229
|
args:
|
|
222
230
|
- "--allow-missing-credentials"
|
|
223
231
|
- repo: https://github.com/rhysd/actionlint
|
|
224
|
-
rev: v1.7.
|
|
232
|
+
rev: v1.7.10
|
|
225
233
|
hooks:
|
|
226
234
|
- id: actionlint
|
|
227
235
|
args:
|
|
@@ -229,6 +229,18 @@
|
|
|
229
229
|
- jupyter
|
|
230
230
|
pass_filenames: false
|
|
231
231
|
require_serial: true
|
|
232
|
+
- id: ty
|
|
233
|
+
name: ty
|
|
234
|
+
description: An extremely fast Python type checker and language server, written in Rust.
|
|
235
|
+
entry: ty check
|
|
236
|
+
language: system
|
|
237
|
+
types_or:
|
|
238
|
+
- python
|
|
239
|
+
- pyi
|
|
240
|
+
- cython
|
|
241
|
+
- jupyter
|
|
242
|
+
pass_filenames: false
|
|
243
|
+
require_serial: true
|
|
232
244
|
- id: numpydoc-validation
|
|
233
245
|
# https://github.com/numpy/numpydoc
|
|
234
246
|
name: numpydoc-validation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyproject-pre-commit
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: pre-commit hooks for python projects using pyproject.toml.
|
|
5
5
|
Project-URL: Repository, https://github.com/rcmdnk/pyproject-pre-commit
|
|
6
6
|
Project-URL: Documentation, https://github.com/rcmdnk/pyproject-pre-commit
|
|
@@ -59,6 +59,8 @@ Requires-Dist: pep8-naming>=0.14.0; extra == 'black'
|
|
|
59
59
|
Requires-Dist: pycodestyle>=2.11.0; extra == 'black'
|
|
60
60
|
Provides-Extra: ruff
|
|
61
61
|
Requires-Dist: ruff>=0.7.2; extra == 'ruff'
|
|
62
|
+
Provides-Extra: ty
|
|
63
|
+
Requires-Dist: ty>=0.0.7; extra == 'ty'
|
|
62
64
|
Description-Content-Type: text/markdown
|
|
63
65
|
|
|
64
66
|
# pyproject-pre-commit<a name="pyproject-pre-commit"></a>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyproject-pre-commit"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.2"
|
|
4
4
|
description = "pre-commit hooks for python projects using pyproject.toml."
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "rcmdnk", email = "rcmdnk@gmail.com" }
|
|
@@ -19,24 +19,24 @@ classifiers = [
|
|
|
19
19
|
]
|
|
20
20
|
requires-python = ">=3.9.0"
|
|
21
21
|
dependencies = [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
22
|
+
"pre-commit>=4.0.0",
|
|
23
|
+
"mypy>=1.5.1",
|
|
24
|
+
"numpydoc>=1.8.0",
|
|
25
|
+
"shellcheck-py>=0.9.0.5",
|
|
26
|
+
"mdformat>=0.7.17",
|
|
27
|
+
"mdformat-pyproject>=0.0.1",
|
|
28
|
+
"mdformat-ruff>=0.1.3",
|
|
29
|
+
"mdformat-beautysh>=0.1.1",
|
|
30
|
+
"mdformat-config>=0.2.1",
|
|
31
|
+
"mdformat-gofmt>=0.0.2",
|
|
32
|
+
"mdformat-rustfmt>=0.0.3",
|
|
33
|
+
"mdformat-footnote>=0.1.1",
|
|
34
|
+
"mdformat-frontmatter>=2.0.1",
|
|
35
|
+
"mdformat-gfm>=0.3.5",
|
|
36
|
+
"mdformat-tables>=1.0.0",
|
|
37
|
+
"mdformat-web>=0.2.0",
|
|
38
|
+
"mdformat-toc>=0.3.0",
|
|
39
|
+
"validate-pyproject[all]>=0.22",
|
|
40
40
|
]
|
|
41
41
|
|
|
42
42
|
[project.urls]
|
|
@@ -47,43 +47,49 @@ Issue = "https://github.com/rcmdnk/pyproject-pre-commit/issues"
|
|
|
47
47
|
|
|
48
48
|
[project.optional-dependencies]
|
|
49
49
|
ruff = [
|
|
50
|
-
|
|
50
|
+
"ruff>=0.7.2",
|
|
51
51
|
]
|
|
52
52
|
black = [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
"black>=24.3.0",
|
|
54
|
+
"blacken-docs>=1.16.0",
|
|
55
|
+
"flake8-pyproject>=1.2.3",
|
|
56
|
+
"flake8-annotations-complexity>=0.0.8",
|
|
57
|
+
"flake8-bugbear>=24.0.0",
|
|
58
|
+
"flake8-builtins>=2.1.0",
|
|
59
|
+
"flake8-comprehensions>=3.14.0",
|
|
60
|
+
"flake8-debugger>=4.1.2",
|
|
61
|
+
"flake8-docstrings>=1.7.0",
|
|
62
|
+
"flake8-executable>=2.1.3",
|
|
63
|
+
"flake8-pep3101>=2.0.0",
|
|
64
|
+
"flake8-print>=5.0.0",
|
|
65
|
+
"flake8-rst-docstrings>=0.3.0",
|
|
66
|
+
"flake8-string-format>=0.3.0",
|
|
67
|
+
"pep8-naming>=0.14.0",
|
|
68
|
+
"pycodestyle>=2.11.0",
|
|
69
|
+
"autoflake>=2.2.1",
|
|
70
|
+
"autopep8>=2.0.4",
|
|
71
|
+
"isort>=5.12.0",
|
|
72
|
+
"bandit[toml]>=1.7.5",
|
|
73
|
+
]
|
|
74
|
+
ty = [
|
|
75
|
+
"ty>=0.0.7",
|
|
73
76
|
]
|
|
74
77
|
|
|
75
78
|
[dependency-groups]
|
|
76
79
|
dev = [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
"pytest>=8.0.0",
|
|
81
|
+
"pytest-cov>=6.0.0",
|
|
82
|
+
"pytest-xdist>=3.3.1",
|
|
83
|
+
"mdformat-ruff>=0.1.3",
|
|
81
84
|
]
|
|
82
85
|
ruff = [
|
|
83
|
-
|
|
86
|
+
"pyproject-pre-commit[ruff]",
|
|
84
87
|
]
|
|
85
88
|
black = [
|
|
86
|
-
|
|
89
|
+
"pyproject-pre-commit[black]",
|
|
90
|
+
]
|
|
91
|
+
ty = [
|
|
92
|
+
"pyproject-pre-commit[ty]",
|
|
87
93
|
]
|
|
88
94
|
|
|
89
95
|
[project.scripts]
|
|
@@ -94,7 +100,7 @@ requires = ["hatchling"]
|
|
|
94
100
|
build-backend = "hatchling.build"
|
|
95
101
|
|
|
96
102
|
[tool.uv]
|
|
97
|
-
default-groups = ["dev", "ruff", "black"]
|
|
103
|
+
default-groups = ["dev", "ruff", "black", "ty"]
|
|
98
104
|
|
|
99
105
|
[tool.pytest.ini_options]
|
|
100
106
|
addopts = "-n auto"
|
|
@@ -123,7 +129,10 @@ ignore = [
|
|
|
123
129
|
]
|
|
124
130
|
|
|
125
131
|
[tool.ruff.lint.per-file-ignores]
|
|
126
|
-
"tests/**" = [
|
|
132
|
+
"tests/**" = [
|
|
133
|
+
"S101", # Use of `assert` detected
|
|
134
|
+
"PLR0913", # Too many arguments in function definition
|
|
135
|
+
]
|
|
127
136
|
|
|
128
137
|
[tool.ruff.lint.mccabe]
|
|
129
138
|
max-complexity = 10
|
|
@@ -173,6 +182,8 @@ scripts_are_modules = true
|
|
|
173
182
|
install_types = true
|
|
174
183
|
non_interactive = true
|
|
175
184
|
|
|
185
|
+
[tool.ty.rules]
|
|
186
|
+
|
|
176
187
|
[tool.numpydoc_validation]
|
|
177
188
|
checks = [
|
|
178
189
|
"all", # report on all checks, except the below
|
|
@@ -5,9 +5,9 @@ from pyproject_pre_commit import __version__
|
|
|
5
5
|
|
|
6
6
|
def test_version() -> None:
|
|
7
7
|
try:
|
|
8
|
-
import tomllib
|
|
8
|
+
import tomllib # ty: ignore[unresolved-import]
|
|
9
9
|
except ModuleNotFoundError:
|
|
10
|
-
import tomli as tomllib
|
|
10
|
+
import tomli as tomllib # ty: ignore[unresolved-import]
|
|
11
11
|
with (Path(__file__).parents[1] / "pyproject.toml").open("rb") as f:
|
|
12
12
|
version = tomllib.load(f)["project"]["version"]
|
|
13
13
|
assert version == __version__
|