IliaLarchenko commited on
Commit
aaa677c
1 Parent(s): 383a104

Moved black to the main config

Browse files
Files changed (2) hide show
  1. .pre-commit-config.yaml +4 -3
  2. black.toml +0 -21
.pre-commit-config.yaml CHANGED
@@ -10,11 +10,12 @@ repos:
10
  hooks:
11
  - id: isort
12
  args: [-w, "140", -lbt, "1"]
13
- - repo: https://github.com/psf/black
14
- rev: 24.1.1
 
15
  hooks:
16
  - id: black
17
- args: [--config=black.toml]
18
 
19
  - repo: https://github.com/asottile/pyupgrade
20
  rev: v3.15.0
 
10
  hooks:
11
  - id: isort
12
  args: [-w, "140", -lbt, "1"]
13
+ repos:
14
+ - repo: https://github.com/psf/black-pre-commit-mirror
15
+ rev: 24.4.2
16
  hooks:
17
  - id: black
18
+ args: ['--line-length', '140', '--language_version', 'python3.12']
19
 
20
  - repo: https://github.com/asottile/pyupgrade
21
  rev: v3.15.0
black.toml DELETED
@@ -1,21 +0,0 @@
1
- [tool.black]
2
- line-length = 140
3
- target-version = ['py37']
4
- include = '\.pyi?$'
5
- exclude = '''
6
-
7
- (
8
- /(
9
- \.eggs # exclude a few common directories in the
10
- | \.git # root of the project
11
- | \.hg
12
- | \.mypy_cache
13
- | \.tox
14
- | \.venv
15
- | _build
16
- | buck-out
17
- | build
18
- | dist
19
- )/
20
- )
21
- '''