Skip to content

Commit

Permalink
🩹 Fix pre commit hook manifest (#287)
Browse files Browse the repository at this point in the history
* 🩹 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
  • Loading branch information
s-weigand authored Oct 9, 2024
1 parent 886a032 commit 06907d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ repos:
- id: end-of-file-fixer
- id: no-commit-to-branch
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pre-commit
rev: v4.0.0
hooks:
- id: validate_manifest
- repo: https://github.com/psf/black
rev: '23.3.0'
hooks:
Expand Down
7 changes: 0 additions & 7 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@
args: [-i]
language: python
types: [python]
- id: docformatter-venv
name: docformatter-venv
description: 'Formats docstrings to follow PEP 257. Uses python3 -m venv.'
entry: docformatter
args: [-i]
language: python_venv
types: [python]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ deps =
charset_normalizer
pycodestyle
pydocstyle
ruff
ruff==0.0.269
rstcheck
toml
untokenize
Expand Down
1 change: 0 additions & 1 deletion src/docformatter/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,4 +975,3 @@ def _field_over_url(
if _value[1] < any_param_start:
nonoverlapping_urls.append(_value)
return nonoverlapping_urls

0 comments on commit 06907d0

Please sign in to comment.