Skip to content

Commit

Permalink
Update pre commit versions (#1167)
Browse files Browse the repository at this point in the history
* update pre-commit versions

* update pre-commit versions

* add ruff parameter to avoid to many modifications in this PR

* revert change pre-commit/action
  • Loading branch information
getzze authored Sep 11, 2024
1 parent 17b7e74 commit bb740be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,43 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-toml
- id: check-yaml
exclude: ^tests/cassettes/
- id: end-of-file-fixer

- repo: https://github.com/crate-ci/typos
rev: v1.22.0
rev: v1.24.5
hooks:
- id: typos

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.6.4
hooks:
- id: ruff
args: [ --fix, --unsafe-fixes ]
args: [--fix, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.19
hooks:
- id: validate-pyproject
name: validate-pyproject

- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
rev: v1.1.2
hooks:
- id: doc8
description: This hook runs doc8 for linting docs
require_serial: true

- repo: local
hooks:
- id: changelog-fragment-filenames
name: changelog fragment
language: fail
entry: changelog fragment files must be named *.(breaking|change|provider|refiner|deprecation|doc|misc).rst
exclude: ^changelog.d/(\..*|towncrier_template.rst|.*\.(breaking|change|provider|refiner|deprecation|doc|misc).rst)
files: ^changelog.d/
- id: changelog-fragment-filenames
name: changelog fragment
language: fail
entry: changelog fragment files must be named *.(breaking|change|provider|refiner|deprecation|doc|misc).rst
exclude:
^changelog.d/(\..*|towncrier_template.rst|.*\.(breaking|change|provider|refiner|deprecation|doc|misc).rst)
files: ^changelog.d/
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ ignore = [
"D401", # First line should be in imperative mood
]

[tool.ruff.lint.flake8-pytest-style]
mark-parentheses = true

[tool.ruff.lint.per-file-ignores]
"docs/conf*.py" = ["ALL"]
"subliminal/__init__.py" = ["E402"]
Expand Down

0 comments on commit bb740be

Please sign in to comment.