forked from cfculhane/django_microsoft_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (36 loc) · 1.22 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
37
38
39
exclude: 'docs|scripts|node_modules|\.git|\.tox|\.idea|min\.css|.*\.js|.*\.csv|.*\.svg|^frontend/packages/old|pnpm-lock\.yaml'
default_stages: [ commit ]
fail_fast: false
default_language_version:
node: system
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# Don't allow commits to master/main/live if there are migrations
# Basic checks and fixes
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: "^(awscfn|kubernetes)/"
- id: check-json
- id: check-toml
- id: check-xml
- id: check-added-large-files # To force people to use git-lfs
args: ['--maxkb=2000', '--enforce-all']
name: "added file is too large, use git-lfs for large files"
- id: mixed-line-ending
args: [ '--fix=lf' ]
description: Forces to replace line ending by the UNIX 'lf' character.
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [ --config=./pyproject.toml ]
exclude: ".*/migrations/.*"
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.272'
hooks:
- id: ruff
args: [ '--fix' ]