Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba314 committed May 26, 2024
1 parent c56285a commit e65e46f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: no-commit-to-branch
args: ["--branch", "master", "--branch", "main"]
- repo: local
hooks:
- id: ruff
name: ruff
language: system
entry: poetry run ruff check
types: [python]
- id: isort
name: isort
language: system
entry: poetry run isort --check --diff
types: [python]
- id: pyright
name: pyright
language: system
entry: poetry run pyright
types: [python]
- id: pytest
name: pytest
language: system
entry: poetry run pytest
pass_filenames: false

0 comments on commit e65e46f

Please sign in to comment.