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
mmdetection3d
Commits
5c06ad40
Unverified
Commit
5c06ad40
authored
Dec 07, 2021
by
Wenhao Wu
Committed by
GitHub
Dec 07, 2021
Browse files
extract lint.yml (#1103)
parent
696dcf3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
21 deletions
+29
-21
.github/workflows/build.yml
.github/workflows/build.yml
+0
-21
.github/workflows/lint.yml
.github/workflows/lint.yml
+29
-0
No files found.
.github/workflows/build.yml
View file @
5c06ad40
...
@@ -27,27 +27,6 @@ concurrency:
...
@@ -27,27 +27,6 @@ concurrency:
cancel-in-progress
:
true
cancel-in-progress
:
true
jobs
:
jobs
:
lint
:
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.7
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Install linting dependencies
run
:
|
python -m pip install --upgrade pip
pip install flake8 isort yapf interrogate
-
name
:
Lint with flake8
run
:
flake8 .
-
name
:
Lint with isort
run
:
isort --recursive --check-only --diff mmdet3d/ tests/ examples/
-
name
:
Format python codes with yapf
run
:
yapf -r -d mmdet3d/ tests/ examples/
-
name
:
Check docstring
run
:
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --exclude mmdet3d/ops --ignore-regex "__repr__" --fail-under 95 mmdet3d
build
:
build
:
env
:
env
:
FORCE_CUDA
:
1
FORCE_CUDA
:
1
...
...
.github/workflows/lint.yml
0 → 100644
View file @
5c06ad40
name
:
lint
on
:
[
push
,
pull_request
]
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
lint
:
runs-on
:
ubuntu-18.04
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.7
uses
:
actions/setup-python@v1
with
:
python-version
:
3.7
-
name
:
Install linting dependencies
run
:
|
python -m pip install --upgrade pip
pip install flake8 isort yapf interrogate
-
name
:
Lint with flake8
run
:
flake8 .
-
name
:
Lint with isort
run
:
isort --recursive --check-only --diff mmdet3d/ tests/ examples/
-
name
:
Format python codes with yapf
run
:
yapf -r -d mmdet3d/ tests/ examples/
-
name
:
Check docstring
run
:
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --exclude mmdet3d/ops --ignore-regex "__repr__" --fail-under 95 mmdet3d
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