Skip to content

Commit

Permalink
CI: Ruff replaced Tools
Browse files Browse the repository at this point in the history
https://docs.astral.sh/ruff/ replaces a lot of linter and formatter
tools, remove duplication for stability and less noise.
  • Loading branch information
ax3l committed Aug 10, 2024
1 parent 858e2a9 commit 97c49b1
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,6 @@ repos:
# hooks:
# - id: clang-format

# Autoremoves unused Python imports
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
hooks:
- id: pycln
name: pycln (python)

# Sorts Python imports according to PEP8
# https://www.python.org/dev/peps/pep-0008/#imports
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]

# Python Formatting
- repo: https://github.com/psf/black
rev: 24.8.0 # Keep in sync with blacken-docs
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.8.0 # keep in sync with black hook
# TODO: black-jupyter

# Python: Ruff linter
# https://docs.astral.sh/ruff/
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand All @@ -109,17 +80,6 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, jupyter]

# Python: Flake8 (only for pyflake and bugbear)
# Ruff above is faster
#- repo: https://github.com/PyCQA/flake8
# rev: 6.1.0
# hooks:
# - id: flake8
# additional_dependencies: &flake8_dependencies
# - flake8-bugbear
# - Flake8-pyproject
# exclude: ^(docs/.*|tools/.*)$

# Jupyter Notebooks: clean up all cell outputs
- repo: https://github.com/roy-ht/pre-commit-jupyter
rev: v1.2.1
Expand Down

0 comments on commit 97c49b1

Please sign in to comment.