Skip to content

Commit

Permalink
replaced all python linters and formatters with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Aug 16, 2024
1 parent b765474 commit 73d0e84
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 437 deletions.
10 changes: 0 additions & 10 deletions .flake8

This file was deleted.

34 changes: 8 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
default_stages: [commit, push]
exclude: ^src/bin/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [--maxkb=10000]
Expand All @@ -13,9 +12,6 @@ repos:

- id: check-yaml

- id: end-of-file-fixer
types: [python]

- id: fix-encoding-pragma
args: [--remove]

Expand All @@ -29,28 +25,14 @@ repos:
- id: pretty-format-json
args: [--autofix]

- id: trailing-whitespace
types: [python]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: [--select=W504, --ignore=E501,W503]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.2.2
hooks:
- id: pylint
language: system
args: [--rcfile=.pylintrc]

- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck

- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.5.6'
hooks:
- id: dockerfilelint
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
Loading

0 comments on commit 73d0e84

Please sign in to comment.