-
Notifications
You must be signed in to change notification settings - Fork 133
/
.pre-commit-config.yaml
58 lines (52 loc) · 1.78 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
47
48
49
50
51
52
53
54
55
56
57
58
# Install the pre-commit hooks below with
# 'pre-commit install'
# Auto-update the version of the hooks with
# 'pre-commit autoupdate'
# Run the hooks on all files with
# 'pre-commit run --all'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args: ['--maxkb=10000']
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: debug-statements
- id: trailing-whitespace
- id: end-of-file-fixer
- id: double-quote-string-fixer
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort
args: ['--line-length=110']
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
hooks:
- id: autopep8
name: autopep8-default
args: ['-i', '--ignore=C0301', '--max-line-length=1000']
exclude: (^tests/|^safe_control_gym/math_and_models/transformations.py)
- id: autopep8
name: autopep8-tests
args: ['-i', '--ignore=C0301,E501,E201,E241,E127', '--max-line-length=1000']
files: (^tests/|^safe_control_gym/math_and_models/transformations.py)
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
name: flake8_default
args: ['--ignore=E501']
exclude: (^safe_control_gym/__init__.py|^tests/|^safe_control_gym/math_and_models/transformations.py)
- id: flake8
name: flake8_tests
args: ['--ignore=E501,E201,E241,E127']
files: (^tests/|^safe_control_gym/math_and_models/transformations.py)
exclude: ^tests/test_build.py