-
Notifications
You must be signed in to change notification settings - Fork 544
/
.pre-commit-config.yaml
41 lines (40 loc) · 1.34 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
---
ci:
# https://pre-commit.ci/#configuration
autoupdate_schedule: weekly
autofix_prs: false
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
# This is here to defer file selection to isort which will do it based on
# black config.
pass_filenames: false
require_serial: true
args: ["."]
- repo: https://github.com/psf/black
# WARNING: version should be the same as in `pyproject.toml` and `requirements.dev.txt`.
rev: 'refs/tags/22.3.0:refs/tags/22.3.0'
hooks:
- id: black
pass_filenames: false
require_serial: true
args: ["."]
# - repo: local
# hooks:
# # using a local hook for black because of an issue that arises when using
# # pre-commit and setuptools-scm that results in version info being lost.
# # For more info see https://github.com/psf/black/issues/2493
# # Based on https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml
# - id: black
# name: black
# description: "Black: The uncompromising Python code formatter"
# entry: black
# language: python
# additional_dependencies: ["black>=22.0,<23"]
# # This is here to defer file selection to black which will do it based on
# # black config.
# pass_filenames: false
# require_serial: true
# args: ["."]