Skip to content

Commit a0b5c11

Browse files
author
Carl Crowder
committed
Bit of faff to get isort and pre-commit working happily, also flake8 seemed to die with that config file, and flake8 now appears to have no issues with the code here
1 parent f61f316 commit a0b5c11

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

.flake8

Lines changed: 0 additions & 6 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1+
# https://pre-commit.com/
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v4.4.0
45
hooks:
56
- id: trailing-whitespace
67
- id: end-of-file-fixer
7-
- repo: https://github.com/PyCQA/isort
8-
rev: 5.12.0
8+
- id: mixed-line-ending
9+
args: [--fix=lf]
10+
- id: debug-statements
11+
# code formatting
12+
- repo: https://github.com/PyCQA/flake8
13+
rev: 6.0.0
914
hooks:
10-
- id: isort
15+
- id: flake8
16+
args: [ --max-line-length=120 ]
1117
- repo: https://github.com/psf/black
12-
rev: 22.12.0
18+
rev: 23.3.0
1319
hooks:
1420
- id: black
15-
args: [--safe, --quiet]
16-
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker/
17-
rev: v1.1.3
18-
hooks:
19-
- id: black-disable-checker
20-
- repo: https://github.com/PyCQA/flake8
21-
rev: 6.0.0
21+
args: [--safe, --line-length=120]
22+
- repo: https://github.com/PyCQA/isort
23+
rev: 5.12.0
2224
hooks:
23-
- id: flake8
24-
additional_dependencies: [flake8-typing-imports==1.10.1]
25+
- id: isort
26+
args: ['--profile', 'black']

0 commit comments

Comments
 (0)