-
Notifications
You must be signed in to change notification settings - Fork 139
/
.pre-commit-config.yaml
36 lines (36 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
exclude: data/Chinook.sqlite
exclude: data/flights.parquet
exclude: data/tfl_small.parquet
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 # Use the ref you want to point at
hooks:
- id: check-added-large-files
- repo: https://github.com/kynan/nbstripout
rev: 0.4.0
hooks:
- id: nbstripout
name: nbstripout
description: 'nbstripout: strip output from Jupyter and IPython notebooks'
entry: nbstripout
language: python
types: [jupyter]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.1
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [ --fix ]
- id: ruff
types_or: [python, pyi, jupyter]
name: sort imports with ruff
args: [--select, I, --fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2 # pick a git hash / tag to point to
hooks:
- id: flake8