Skip to content

Commit 4558d9f

Browse files
authoredMar 23, 2019
Backend: Add pre-commit hook with black and flake8 along with code formatting(Cloud-CV#2223)
1 parent efb1dc3 commit 4558d9f

File tree

168 files changed

+9500
-6350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+9500
-6350
lines changed
 

‎.flake8

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

‎.pre-commit-config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
language_version: python3.7
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v1.2.3
9+
hooks:
10+
- id: flake8

0 commit comments

Comments
 (0)
Please sign in to comment.