Skip to content

Commit 06907d0

Browse files
authored
🩹 Fix pre commit hook manifest (#287)
* 🩹 Remove broken 'python_venv' hook * 🧰 Add pre-commit-hook to validate hook manifest * 🧰⚙️🩹 Pin ruff version in tox config to the same version as in pre-commit * 🧹 Fix additional EOL at end of file
1 parent 886a032 commit 06907d0

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ repos:
99
- id: end-of-file-fixer
1010
- id: no-commit-to-branch
1111
- id: trailing-whitespace
12+
- repo: https://github.com/pre-commit/pre-commit
13+
rev: v4.0.0
14+
hooks:
15+
- id: validate_manifest
1216
- repo: https://github.com/psf/black
1317
rev: '23.3.0'
1418
hooks:

.pre-commit-hooks.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,3 @@
55
args: [-i]
66
language: python
77
types: [python]
8-
- id: docformatter-venv
9-
name: docformatter-venv
10-
description: 'Formats docstrings to follow PEP 257. Uses python3 -m venv.'
11-
entry: docformatter
12-
args: [-i]
13-
language: python_venv
14-
types: [python]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ deps =
263263
charset_normalizer
264264
pycodestyle
265265
pydocstyle
266-
ruff
266+
ruff==0.0.269
267267
rstcheck
268268
toml
269269
untokenize

src/docformatter/syntax.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,4 +975,3 @@ def _field_over_url(
975975
if _value[1] < any_param_start:
976976
nonoverlapping_urls.append(_value)
977977
return nonoverlapping_urls
978-

0 commit comments

Comments
 (0)