forked from spectrochempy/spectrochempy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (48 loc) · 1.47 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
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: local
hooks:
- id: create-requirements
name: create-requirements
description: Create environment and requirement files according to a template
entry: python .ci/create_requirements.py
language: python
additional_dependencies: [pyyaml, jinja2]
pass_filenames: false
- id: update_version_and_release_notes
name: update_version_and_release_notes
description: Update version number and udate release notes
entry: python .ci/update_version_and_release_notes.py
language: python
additional_dependencies: [pyyaml, cffconvert, setuptools_scm]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
name: absolufy-imports
files: ^spectrochempy/
# - repo: https://github.com/PyCQA/autoflake
# rev: "v2.0.0"
# hooks:
# - id: autoflake
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8