Skip to content

Commit

Permalink
style: added pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 10, 2023
1 parent d0f1b01 commit 4c8934b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
fail_fast: true
exclude: '^vendor/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-ast
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.275
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

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

0 comments on commit 4c8934b

Please sign in to comment.