Skip to content

Commit

Permalink
Update pre-commit hooks to lint pyproject.toml (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder authored Oct 8, 2024
1 parent defdc16 commit e2bab76
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/enforce-changelog-entry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
- uses: dangoslen/changelog-enforcer@204e7d3ef26579f4cd0fd759c57032656fdf23c7 # v3.6.1
with:
skipLabels: 'Skip-Changelog,dependencies,tests'
versionPattern: ^`(v\\d?\\.\\d?\\.\\d|Unreleased) <\\S+>`__
changeLogPath: CHANGELOG.rst
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@ repos:
hooks:
- id: mypy
additional_dependencies: [cryptography>=3.4.0]

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.20.2"
hooks:
- id: validate-pyproject

- repo: https://github.com/kieran-ryan/pyprojectsort
rev: "v0.3.0"
hooks:
- id: pyprojectsort

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.29.3"
hooks:
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma

...
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Fixed
Added
~~~~~

- Include checkers and linters for ``pyproject.toml`` in ``pre-commit`` by @cleder in `#1002 <https://github.com/jpadilla/pyjwt/pull/1002>`__

`v2.9.0 <https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0>`__
-----------------------------------------------------------------------

Expand Down

0 comments on commit e2bab76

Please sign in to comment.