Skip to content

Commit 60dffa8

Browse files
committed
Add pre-commit configuration
Signed-off-by: Federico Busetti <729029+febus982@users.noreply.github.com>
1 parent 5bb7c5e commit 60dffa8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- id: debug-statements
12+
- repo: https://github.com/pre-commit/mirrors-mypy
13+
rev: v1.8.0
14+
hooks:
15+
- id: mypy
16+
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
17+
- repo: https://github.com/psf/black-pre-commit-mirror
18+
rev: 23.12.1
19+
hooks:
20+
- id: black
21+
# It is recommended to specify the latest version of Python
22+
# supported by your project here, or alternatively use
23+
# pre-commit's default_language_version, see
24+
# https://pre-commit.com/#top_level-default_language_version
25+
language_version: python3.12
26+
- repo: https://github.com/astral-sh/ruff-pre-commit
27+
# Ruff version.
28+
rev: v0.1.14
29+
hooks:
30+
# Run the linter.
31+
- id: ruff
32+
args: [ --fix ]
33+
# Run the formatter.
34+
#- id: ruff-format

0 commit comments

Comments
 (0)