-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
46 lines (44 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
40
41
42
43
44
45
46
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.6.0
hooks:
- id: no-commit-to-branch
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
exclude: "^(python/lume_model/_version.py)$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
#- repo: local
# hooks:
# - id: black
# name: black
# entry: black
# language: python
# language_version: python3
# types: [python]
# args: # arguments to configure black
# - --line-length=88
# - id: flake8
# name: flake8
# entry: flake8
# language: python
# language_version: python3
# types: [python]
# # only in lume_services
# files: ^lume_services
# args: # arguments to configure flake8
# # making isort line length compatible with black
# - "--max-line-length=88"