Update .pre-commit and add ruff

This commit is contained in:
David Doblas Jiménez 2023-04-29 15:36:47 +02:00
parent f22d39ab8a
commit ccb30f0893

View File

@ -1,25 +1,21 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.4.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.6.0 rev: 23.3.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.10.1 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.971 # Ruff version.
rev: "v0.0.263"
hooks: hooks:
- id: mypy - id: ruff
additional_dependencies: [pydantic] # add if use pydantic
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8