Skip to content

Instantly share code, notes, and snippets.

@whybfq
Created September 5, 2023 11:46
Show Gist options
  • Save whybfq/03c0812438364b30f4d21db474373f16 to your computer and use it in GitHub Desktop.
Save whybfq/03c0812438364b30f4d21db474373f16 to your computer and use it in GitHub Desktop.

Revisions

  1. whybfq created this gist Sep 5, 2023.
    16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    fail_fast: true
    repos:
    - repo: https://github.com/timothycrosley/isort
    rev: 5.7.0
    hooks:
    - id: isort
    additional_dependencies: [toml]
    - repo: https://github.com/psf/black
    rev: 20.8b1
    hooks:
    - id: black
    args: [--config=./pyproject.toml]
    - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.4.0
    hooks:
    - id: flake8