Skip to content

Commit

Permalink
Add pre-commit hook with ruff (#654)
Browse files Browse the repository at this point in the history
* Add pre-commit hook with ruff

* Add mypy to hook
  • Loading branch information
PGijsbers authored Nov 26, 2024
1 parent 3493a26 commit 9cf814b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0'
hooks:
- id: mypy
4 changes: 3 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ pandas-stubs
boto3-stubs
mypy

pre-commit

# documentation
mkdocs-material
mkdocs-material

0 comments on commit 9cf814b

Please sign in to comment.