diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3453d7c..836d716 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: '^src/validate_pyproject/_vendor' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -20,7 +20,7 @@ repos: args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows - repo: https://github.com/PyCQA/autoflake - rev: v2.2.0 + rev: v2.2.1 hooks: - id: autoflake args: [ @@ -30,9 +30,10 @@ repos: ] - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell + args: [-w] - repo: https://github.com/pycqa/isort rev: 5.12.0 @@ -40,7 +41,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black language_version: python3 diff --git a/src/validate_pyproject/formats.py b/src/validate_pyproject/formats.py index 486d526..e739616 100644 --- a/src/validate_pyproject/formats.py +++ b/src/validate_pyproject/formats.py @@ -95,7 +95,7 @@ def pep508_versionspec(value: str) -> bool: # versionspec return False # Let's pretend we have a dependency called `requirement` with the given - # version spec, then we can re-use the pep508 function for validation: + # version spec, then we can reuse the pep508 function for validation: return pep508(f"requirement{value}")