diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3557e2..a881e09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,19 @@ repos: - - repo: https://github.com/psf/black - rev: 22.3.0 # Replace by any tag/version: https://github.com/psf/black/tags - hooks: - - id: black - language_version: python3 # Should be a command that runs python3.6+ +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: detect-private-key +- repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.3.7 + hooks: + # Run the linter. + - id: ruff + types_or: [ python, pyi, jupyter ] + args: [ --fix, --show-fixes ] + # Run the formatter. + - id: ruff-format + types_or: [ python, pyi, jupyter ]