Skip to content

Instantly share code, notes, and snippets.

@pybites
Last active June 6, 2024 23:56
Show Gist options
  • Select an option

  • Save pybites/929596b81b619ce3c115607d045af718 to your computer and use it in GitHub Desktop.

Select an option

Save pybites/929596b81b619ce3c115607d045af718 to your computer and use it in GitHub Desktop.

Revisions

  1. pybites revised this gist Apr 28, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ repos:
    - id: trailing-whitespace
    - id: debug-statements

    - repo: https://gitlab.com/pycqa/flake8
    - repo: https://github.com/pycqa/flake8
    rev: 3.9.2
    hooks:
    - id: flake8
  2. pybites created this gist Dec 8, 2021.
    31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    repos:
    - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.0.1
    hooks:
    - id: check-yaml
    - id: end-of-file-fixer
    - id: trailing-whitespace
    - id: debug-statements

    - repo: https://gitlab.com/pycqa/flake8
    rev: 3.9.2
    hooks:
    - id: flake8
    additional_dependencies: ["flake8-bandit", "flake8-bugbear"]

    - repo: https://github.com/pycqa/isort
    rev: 5.9.3
    hooks:
    - id: isort
    args: ["--profile", "black", "--filter-files"]

    - repo: https://github.com/psf/black
    rev: 21.7b0
    hooks:
    - id: black
    language_version: python3

    - repo: https://github.com/asottile/pyupgrade
    rev: v2.23.1
    hooks:
    - id: pyupgrade