Skip to content

Commit cefcf1b

Browse files
author
Luan Pham
committed
Add lint config
1 parent 5de82d9 commit cefcf1b

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.flake8

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
max-line-length = 88
3+
ignore = E203, E231, E266, E501, W503, F403, F405
4+
max-complexity = 25
5+
select = B,C,E,F,W,T4,B9

.isort.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[settings]
2+
line_length=88
3+
multi_line_output=3
4+
include_trailing_comma=True
5+
skip=scripts/**

.pre-commit-config.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: detect-aws-credentials
9+
- id: detect-private-key
10+
- id: end-of-file-fixer
11+
- id: check-added-large-files
12+
- repo: https://github.com/ambv/black
13+
rev: 21.5b0
14+
hooks:
15+
- id: black
16+
language_version: python3.9
17+
- repo: https://github.com/pycqa/isort
18+
rev: 5.8.0
19+
hooks:
20+
- id: isort
21+
args: [--profile, black]
22+
- repo: https://gitlab.com/pycqa/flake8
23+
rev: 3.9.1
24+
hooks:
25+
- id: flake8
26+
- repo: https://github.com/myint/autoflake
27+
rev: v1.4
28+
hooks:
29+
- id: autoflake
30+
args: [
31+
"--in-place",
32+
"--remove-unused-variables",
33+
"--remove-all-unused-imports",
34+
"--exclude=tests/*",
35+
]

0 commit comments

Comments
 (0)