Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
2330c4f4
Unverified
Commit
2330c4f4
authored
Dec 12, 2019
by
Kai Chen
Committed by
GitHub
Dec 12, 2019
Browse files
Add pre-commit hooks (#156)
* add pre-commit hooks * update yapf version
parent
fd3f862e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
.pre-commit-config.yaml
.pre-commit-config.yaml
+21
-0
setup.cfg
setup.cfg
+3
-3
No files found.
.pre-commit-config.yaml
0 → 100644
View file @
2330c4f4
repos
:
-
repo
:
https://github.com/asottile/seed-isort-config
rev
:
v1.9.3
hooks
:
-
id
:
seed-isort-config
# - repo: https://github.com/pre-commit/mirrors-isort
# rev: v4.3.21
# hooks:
# - id: isort
-
repo
:
https://github.com/pre-commit/mirrors-yapf
rev
:
v0.29.0
hooks
:
-
id
:
yapf
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v2.3.0
hooks
:
-
id
:
flake8
-
id
:
trailing-whitespace
-
id
:
check-yaml
-
id
:
end-of-file-fixer
-
id
:
requirements-txt-fixer
setup.cfg
View file @
2330c4f4
...
@@ -15,8 +15,8 @@ split_before_expression_after_opening_paren = true
...
@@ -15,8 +15,8 @@ split_before_expression_after_opening_paren = true
[isort]
[isort]
line_length = 79
line_length = 79
multi_line_output = 0
multi_line_output = 0
known_standard_library = setuptools
known_standard_library =
pkg_resources,
setuptools
known_first_party = mmcv
known_first_party = mmcv
known_third_party = addict,cv2,m
atplotlib,numpy,requests,six,torch
,yaml
known_third_party =
Cython,
addict,cv2,m
ock,numpy,pytest,requests,resnet_cifar,six,terminaltables,torch,torchvision
,yaml
no_lines_before = STDLIB,LOCALFOLDER
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY
default_section = THIRDPARTY
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment