Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
04135411
You need to sign in or sign up before continuing.
Commit
04135411
authored
Aug 30, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linter actions
parent
9e8e9fb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
.github/workflows/linter.yml
.github/workflows/linter.yml
+33
-0
examples/tox.ini
examples/tox.ini
+1
-0
tox.ini
tox.ini
+1
-0
No files found.
.github/workflows/linter.yml
0 → 100644
View file @
04135411
name
:
Linter
on
:
[
push
,
pull_request
]
jobs
:
lint
:
runs-on
:
ubuntu-latest
strategy
:
max-parallel
:
4
matrix
:
python-version
:
[
2.7
,
3.5
,
3.6
,
3.7
]
steps
:
-
uses
:
actions/checkout
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install flake8
flake8 --version
-
name
:
Lint
run
:
|
flake8 .
-
name
:
Lint Examples
# some examples are py3 only
if
:
matrix.python-version !=
2.7
run
:
|
cd examples
flake8 .
examples/tox.ini
View file @
04135411
...
@@ -4,3 +4,4 @@ ignore = F403,F405,E402,E741,E742,E743,W504,W605
...
@@ -4,3 +4,4 @@ ignore = F403,F405,E402,E741,E742,E743,W504,W605
exclude
=
private,
exclude
=
private,
FasterRCNN/utils,
FasterRCNN/utils,
__init__.py
__init__.py
show-source
=
true
tox.ini
View file @
04135411
...
@@ -12,6 +12,7 @@ exclude = .git,
...
@@ -12,6 +12,7 @@ exclude = .git,
snippet,
snippet,
examples_v2,
examples_v2,
_test.py,
_test.py,
show-source
=
true
[isort]
[isort]
line_length
=
100
line_length
=
100
...
...
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