pyproject-pre-commit 0.3.3__tar.gz → 0.3.4__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 (19) hide show
  1. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.pre-commit-config.yaml +7 -0
  2. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.pre-commit-hooks.yaml +27 -12
  3. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/PKG-INFO +5 -1
  4. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/pyproject.toml +7 -3
  5. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/uv.lock +43 -4
  6. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.github/FUNDING.yml +0 -0
  7. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.github/workflows/pypi.yml +0 -0
  8. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.github/workflows/test.yml +0 -0
  9. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/.gitignore +0 -0
  10. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/LICENSE +0 -0
  11. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/README.md +0 -0
  12. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/renovate.json +0 -0
  13. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/src/pyproject_pre_commit/__init__.py +0 -0
  14. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/src/pyproject_pre_commit/__version__.py +0 -0
  15. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/src/pyproject_pre_commit/py.typed +0 -0
  16. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/src/pyproject_pre_commit/pyproject_pre_commit.py +0 -0
  17. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/tests/__init__.py +0 -0
  18. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/tests/test_pyproject_pre_commit.py +0 -0
  19. {pyproject_pre_commit-0.3.3 → pyproject_pre_commit-0.3.4}/tests/test_version.py +0 -0
@@ -1,3 +1,4 @@
1
+ ---
1
2
  repos:
2
3
  - repo: local
3
4
  hooks:
@@ -195,6 +196,12 @@ repos:
195
196
  entry: mdformat
196
197
  language: system
197
198
  types: [markdown]
199
+ - id: validate-pyproject
200
+ name: validate-pyproject
201
+ entry: validate-pyproject
202
+ language: system
203
+ types: []
204
+ files: ^pyproject.toml$
198
205
  - repo: https://github.com/pre-commit/pre-commit-hooks
199
206
  rev: v5.0.0
200
207
  hooks:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  - id: ruff-lint-diff
2
3
  # https://github.com/astral-sh/ruff-pre-commit
3
4
  name: ruff-lint-diff
@@ -9,9 +10,9 @@
9
10
  - pyi
10
11
  - cython
11
12
  - jupyter
12
- require_serial: true
13
13
  minimum_pre_commit_version: "2.9.2"
14
14
  verbose: true
15
+ require_serial: true
15
16
  - id: ruff-lint
16
17
  # https://github.com/astral-sh/ruff-pre-commit
17
18
  name: ruff-lint
@@ -23,8 +24,8 @@
23
24
  - pyi
24
25
  - cython
25
26
  - jupyter
26
- require_serial: true
27
27
  minimum_pre_commit_version: "2.9.2"
28
+ require_serial: true
28
29
  - id: ruff-format-diff
29
30
  # https://github.com/astral-sh/ruff-pre-commit
30
31
  name: ruff-format-diff
@@ -36,9 +37,9 @@
36
37
  - pyi
37
38
  - cython
38
39
  - jupyter
39
- require_serial: true
40
40
  minimum_pre_commit_version: "2.9.2"
41
41
  verbose: true
42
+ require_serial: true
42
43
  - id: ruff-format
43
44
  # https://github.com/astral-sh/ruff-pre-commit
44
45
  name: ruff-format
@@ -50,8 +51,8 @@
50
51
  - pyi
51
52
  - cython
52
53
  - jupyter
53
- require_serial: true
54
54
  minimum_pre_commit_version: "2.9.2"
55
+ require_serial: true
55
56
  - id: black-diff
56
57
  # https://github.com/psf/black
57
58
  name: black-diff
@@ -63,12 +64,12 @@
63
64
  - pyi
64
65
  - cython
65
66
  - jupyter
66
- require_serial: true
67
67
  args:
68
68
  - "--diff"
69
69
  - "--color"
70
70
  - "--quiet"
71
71
  verbose: true
72
+ require_serial: true
72
73
  - id: black
73
74
  # https://github.com/psf/black
74
75
  name: black
@@ -80,9 +81,9 @@
80
81
  - pyi
81
82
  - cython
82
83
  - jupyter
83
- require_serial: true
84
84
  args:
85
85
  - "--quiet"
86
+ require_serial: true
86
87
  - id: blacken-docs
87
88
  # https://github.com/asottile/blacken-docs
88
89
  name: blacken-docs
@@ -90,6 +91,7 @@
90
91
  entry: blacken-docs
91
92
  language: system
92
93
  files: '\.(rst|md|markdown|py|tex)$'
94
+ require_serial: true
93
95
  - id: autoflake-diff
94
96
  # https://github.com/PyCQA/autoflake
95
97
  name: autoflake-diff
@@ -101,8 +103,8 @@
101
103
  - pyi
102
104
  - cython
103
105
  - jupyter
104
- require_serial: true
105
106
  verbose: true
107
+ require_serial: true
106
108
  - id: autoflake
107
109
  # https://github.com/PyCQA/autoflake
108
110
  name: autoflake
@@ -114,9 +116,9 @@
114
116
  - pyi
115
117
  - cython
116
118
  - jupyter
117
- require_serial: true
118
119
  args:
119
120
  - "--in-place"
121
+ require_serial: true
120
122
  - id: autopep8-diff
121
123
  # https://github.com/pre-commit/mirrors-autopep8
122
124
  name: autopep8-diff
@@ -130,6 +132,7 @@
130
132
  - jupyter
131
133
  args:
132
134
  - "--diff"
135
+ require_serial: true
133
136
  - id: autopep8
134
137
  # https://github.com/pre-commit/mirrors-autopep8
135
138
  name: autopep8
@@ -143,13 +146,13 @@
143
146
  - jupyter
144
147
  args:
145
148
  - "--in-place"
149
+ require_serial: true
146
150
  - id: isort-diff
147
151
  # https://github.com/PyCQA/isort
148
152
  name: isort-diff
149
153
  description: Just show the diff of isort result.
150
154
  entry: isort
151
155
  language: system
152
- require_serial: true
153
156
  types_or:
154
157
  - python
155
158
  - pyi
@@ -159,13 +162,13 @@
159
162
  - '--diff'
160
163
  - '--filter-files'
161
164
  verbose: true
165
+ require_serial: true
162
166
  - id: isort
163
167
  # https://github.com/PyCQA/isort
164
168
  name: isort
165
169
  description: isort your imports, so you don't have to.
166
170
  entry: isort
167
171
  language: system
168
- require_serial: true
169
172
  types_or:
170
173
  - python
171
174
  - pyi
@@ -173,6 +176,7 @@
173
176
  - jupyter
174
177
  args:
175
178
  - '--filter-files'
179
+ require_serial: true
176
180
  - id: flake8
177
181
  # https://github.com/PyCQA/flake8
178
182
  name: flake8
@@ -199,6 +203,7 @@
199
203
  args:
200
204
  - "-c"
201
205
  - "pyproject.toml"
206
+ require_serial: true
202
207
  - id: mypy
203
208
  # https://github.com/pre-commit/mirrors-mypy
204
209
  name: mypy
@@ -210,20 +215,20 @@
210
215
  - pyi
211
216
  - cython
212
217
  - jupyter
213
- require_serial: true
214
218
  pass_filenames: false
219
+ require_serial: true
215
220
  - id: numpydoc-validation
216
221
  # https://github.com/numpy/numpydoc
217
222
  name: numpydoc-validation
218
223
  entry: numpydoc lint
219
224
  description: This hook validates that docstrings in committed files adhere to numpydoc standards.
220
- require_serial: true
221
225
  language: system
222
226
  types:
223
227
  - python
224
228
  - pyi
225
229
  - cython
226
230
  - jupyter
231
+ require_serial: true
227
232
  - id: shellcheck
228
233
  # https://github.com/shellcheck-py/shellcheck-py
229
234
  name: shellcheck
@@ -241,6 +246,7 @@
241
246
  types: [markdown]
242
247
  args:
243
248
  - "--check"
249
+ require_serial: true
244
250
  - id: mdformat
245
251
  # https://github.com/executablebooks/mdformat
246
252
  name: mdformat
@@ -248,3 +254,12 @@
248
254
  entry: mdformat
249
255
  language: system
250
256
  types: [markdown]
257
+ require_serial: true
258
+ - id: validate-pyproject
259
+ # https://github.com/abravalheri/validate-pyproject
260
+ name: validate-pyproject
261
+ description: Validate pyproject.toml file
262
+ entry: validate-pyproject
263
+ language: system
264
+ files: ^pyproject.toml$
265
+ require_serial: true
@@ -1,7 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyproject-pre-commit
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: pre-commit hooks for python projects using pyproject.toml.
5
+ Project-URL: repository, https://github.com/rcmdnk/pyproject-pre-commit
6
+ Project-URL: homepage, https://github.com/rcmdnk/pyproject-pre-commit
7
+ Project-URL: documentation, https://github.com/rcmdnk/pyproject-pre-commit
5
8
  Author-email: rcmdnk <rcmdnk@gmail.com>
6
9
  Keywords: pre-commit,pyproject.toml,uv
7
10
  Classifier: Development Status :: 3 - Alpha
@@ -46,6 +49,7 @@ Requires-Dist: pep8-naming>=0.14.0
46
49
  Requires-Dist: pre-commit>=4.0.0
47
50
  Requires-Dist: pycodestyle>=2.11.0
48
51
  Requires-Dist: shellcheck-py>=0.9.0.5
52
+ Requires-Dist: validate-pyproject[all]>=0.22
49
53
  Provides-Extra: ruff
50
54
  Requires-Dist: mdformat-ruff>=0.1.3; extra == 'ruff'
51
55
  Requires-Dist: ruff>=0.7.2; extra == 'ruff'
@@ -1,12 +1,10 @@
1
1
  [project]
2
2
  name = "pyproject-pre-commit"
3
- version = "0.3.3"
3
+ version = "0.3.4"
4
4
  description = "pre-commit hooks for python projects using pyproject.toml."
5
5
  authors = [
6
6
  { name = "rcmdnk", email = "rcmdnk@gmail.com" }
7
7
  ]
8
- repository = "https://github.com/rcmdnk/pyproject-pre-commit"
9
- homepage = "https://github.com/rcmdnk/pyproject-pre-commit"
10
8
  readme = "README.md"
11
9
  license = "Apache-2.0"
12
10
  keywords = ["pre-commit", "pyproject.toml", "uv"]
@@ -55,8 +53,14 @@ dependencies = [
55
53
  "mdformat-tables>=1.0.0",
56
54
  "mdformat-web>=0.2.0",
57
55
  "mdformat-toc>=0.3.0",
56
+ "validate-pyproject[all]>=0.22",
58
57
  ]
59
58
 
59
+ [project.urls]
60
+ repository = "https://github.com/rcmdnk/pyproject-pre-commit"
61
+ homepage = "https://github.com/rcmdnk/pyproject-pre-commit"
62
+ documentation = "https://github.com/rcmdnk/pyproject-pre-commit"
63
+
60
64
  [project.optional-dependencies]
61
65
  ruff = [
62
66
  "ruff >= 0.7.2",
@@ -386,6 +386,15 @@ wheels = [
386
386
  { url = "https://files.pythonhosted.org/packages/43/09/2aea36ff60d16dd8879bdb2f5b3ee0ba8d08cbbdcdfe870e695ce3784385/execnet-2.1.1-py3-none-any.whl", hash = "sha256:26dee51f1b80cebd6d0ca8e74dd8745419761d3bef34163928cbebbdc4749fdc", size = 40612 },
387
387
  ]
388
388
 
389
+ [[package]]
390
+ name = "fastjsonschema"
391
+ version = "2.20.0"
392
+ source = { registry = "https://pypi.org/simple" }
393
+ sdist = { url = "https://files.pythonhosted.org/packages/03/3f/3ad5e7be13b4b8b55f4477141885ab2364f65d5f6ad5f7a9daffd634d066/fastjsonschema-2.20.0.tar.gz", hash = "sha256:3d48fc5300ee96f5d116f10fe6f28d938e6008f59a6a025c2649475b87f76a23", size = 373056 }
394
+ wheels = [
395
+ { url = "https://files.pythonhosted.org/packages/6d/ca/086311cdfc017ec964b2436fe0c98c1f4efcb7e4c328956a22456e497655/fastjsonschema-2.20.0-py3-none-any.whl", hash = "sha256:5875f0b0fa7a0043a91e93a9b8f793bcbbba9691e7fd83dca95c28ba26d21f0a", size = 23543 },
396
+ ]
397
+
389
398
  [[package]]
390
399
  name = "filelock"
391
400
  version = "3.16.1"
@@ -1097,7 +1106,7 @@ wheels = [
1097
1106
 
1098
1107
  [[package]]
1099
1108
  name = "pyproject-pre-commit"
1100
- version = "0.3.2"
1109
+ version = "0.3.4"
1101
1110
  source = { editable = "." }
1102
1111
  dependencies = [
1103
1112
  { name = "autoflake" },
@@ -1134,6 +1143,7 @@ dependencies = [
1134
1143
  { name = "pre-commit" },
1135
1144
  { name = "pycodestyle" },
1136
1145
  { name = "shellcheck-py" },
1146
+ { name = "validate-pyproject", extra = ["all"] },
1137
1147
  ]
1138
1148
 
1139
1149
  [package.optional-dependencies]
@@ -1189,6 +1199,7 @@ requires-dist = [
1189
1199
  { name = "pycodestyle", specifier = ">=2.11.0" },
1190
1200
  { name = "ruff", marker = "extra == 'ruff'", specifier = ">=0.7.2" },
1191
1201
  { name = "shellcheck-py", specifier = ">=0.9.0.5" },
1202
+ { name = "validate-pyproject", extras = ["all"], specifier = ">=0.22" },
1192
1203
  ]
1193
1204
 
1194
1205
  [package.metadata.requires-dev]
@@ -1585,6 +1596,15 @@ wheels = [
1585
1596
  { url = "https://files.pythonhosted.org/packages/cf/db/ce8eda256fa131af12e0a76d481711abe4681b6923c27efb9a255c9e4594/tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38", size = 13237 },
1586
1597
  ]
1587
1598
 
1599
+ [[package]]
1600
+ name = "trove-classifiers"
1601
+ version = "2024.10.21.16"
1602
+ source = { registry = "https://pypi.org/simple" }
1603
+ sdist = { url = "https://files.pythonhosted.org/packages/99/85/92c2667cf221b37648041ce9319427f92fa76cbec634aad844e67e284706/trove_classifiers-2024.10.21.16.tar.gz", hash = "sha256:17cbd055d67d5e9d9de63293a8732943fabc21574e4c7b74edf112b4928cf5f3", size = 16153 }
1604
+ wheels = [
1605
+ { url = "https://files.pythonhosted.org/packages/35/35/5055ab8d215af853d07bbff1a74edf48f91ed308f037380a5ca52dd73348/trove_classifiers-2024.10.21.16-py3-none-any.whl", hash = "sha256:0fb11f1e995a757807a8ef1c03829fbd4998d817319abcef1f33165750f103be", size = 13546 },
1606
+ ]
1607
+
1588
1608
  [[package]]
1589
1609
  name = "typing-extensions"
1590
1610
  version = "4.12.2"
@@ -1612,6 +1632,25 @@ wheels = [
1612
1632
  { url = "https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", size = 126338 },
1613
1633
  ]
1614
1634
 
1635
+ [[package]]
1636
+ name = "validate-pyproject"
1637
+ version = "0.22"
1638
+ source = { registry = "https://pypi.org/simple" }
1639
+ dependencies = [
1640
+ { name = "fastjsonschema" },
1641
+ ]
1642
+ sdist = { url = "https://files.pythonhosted.org/packages/16/eb/758cc41af04ce1c6714a04b95add9769b75675467f43ff5abd48725a7d89/validate_pyproject-0.22.tar.gz", hash = "sha256:5d9a0fa67380ae6b19bcfc253d8d4af9fbcddc59540887efff486ea3075a16bb", size = 112776 }
1643
+ wheels = [
1644
+ { url = "https://files.pythonhosted.org/packages/f8/df/a722c2579283240f86efb0f5f23e6f5e6559b0b73869042e43ac7d7c931b/validate_pyproject-0.22-py3-none-any.whl", hash = "sha256:0200c076741f92374ad2e45fbefda085e0f45507f816dd85481b7b778fc1aef3", size = 52646 },
1645
+ ]
1646
+
1647
+ [package.optional-dependencies]
1648
+ all = [
1649
+ { name = "packaging" },
1650
+ { name = "tomli", marker = "python_full_version < '3.11'" },
1651
+ { name = "trove-classifiers" },
1652
+ ]
1653
+
1615
1654
  [[package]]
1616
1655
  name = "virtualenv"
1617
1656
  version = "20.27.1"
@@ -1637,9 +1676,9 @@ wheels = [
1637
1676
 
1638
1677
  [[package]]
1639
1678
  name = "zipp"
1640
- version = "3.20.2"
1679
+ version = "3.21.0"
1641
1680
  source = { registry = "https://pypi.org/simple" }
1642
- sdist = { url = "https://files.pythonhosted.org/packages/54/bf/5c0000c44ebc80123ecbdddba1f5dcd94a5ada602a9c225d84b5aaa55e86/zipp-3.20.2.tar.gz", hash = "sha256:bc9eb26f4506fda01b81bcde0ca78103b6e62f991b381fec825435c836edbc29", size = 24199 }
1681
+ sdist = { url = "https://files.pythonhosted.org/packages/3f/50/bad581df71744867e9468ebd0bcd6505de3b275e06f202c2cb016e3ff56f/zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4", size = 24545 }
1643
1682
  wheels = [
1644
- { url = "https://files.pythonhosted.org/packages/62/8b/5ba542fa83c90e09eac972fc9baca7a88e7e7ca4b221a89251954019308b/zipp-3.20.2-py3-none-any.whl", hash = "sha256:a817ac80d6cf4b23bf7f2828b7cabf326f15a001bea8b1f9b49631780ba28350", size = 9200 },
1683
+ { url = "https://files.pythonhosted.org/packages/b7/1a/7e4798e9339adc931158c9d69ecc34f5e6791489d469f5e50ec15e35f458/zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931", size = 9630 },
1645
1684
  ]