Skip to content

Commit

Permalink
Include pre-commit and some ruff settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nachollorca committed Jan 20, 2025
1 parent 3808891 commit 80a72c1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .pre-commit-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: no-commit-to-branch
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: .*jinja$
- id: pretty-format-json
args: [--autofix, --indent=4, --no-ensure-ascii]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ dev = [
"pytest>=8.3.4",
"ruff>=0.9.2",
]

[tool.ruff]
fix = true
line-length = 120

0 comments on commit 80a72c1

Please sign in to comment.