From 3252c3f0d874e23fc24dad8372cb815c323b5b63 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 19 Jun 2024 19:22:01 +0200 Subject: [PATCH] update and add more checks --- .pre-commit-config.yaml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dc5c1d0..5952a6f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,14 +5,34 @@ repos: - id: trailing-whitespace - id: check-ast - id: debug-statements + - id: end-of-file-fixer + - id: check-docstring-first - id: check-added-large-files - id: requirements-txt-fixer - id: file-contents-sorter + files: requirements-dev.txt -- repo: https://github.com/PyCQA/flake8 - rev: 7.1.0 +- repo: https://github.com/asottile/add-trailing-comma + rev: v3.1.0 hooks: - - id: flake8 + - id: add-trailing-comma + +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.9 + hooks: + - id: ruff + args: ["--fix", "--show-fixes"] + - id: ruff-format + +- repo: https://github.com/bdice/nb-strip-paths + rev: v0.1.0 + hooks: + - id: nb-strip-paths + +- repo: https://github.com/tox-dev/pyproject-fmt + rev: 2.1.3 + hooks: + - id: pyproject-fmt - repo: https://github.com/codespell-project/codespell rev: v2.3.0