Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
7a86f80e
Commit
7a86f80e
authored
5 years ago
by
Jean-Michel Picod
Browse files
Options
Downloads
Patches
Plain Diff
Now try to trigger pylint matcher
parent
051a78ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/python.yml
+2
-6
2 additions, 6 deletions
.github/workflows/python.yml
deploy.py
+2
-2
2 additions, 2 deletions
deploy.py
with
4 additions
and
8 deletions
.github/workflows/python.yml
+
2
−
6
View file @
7a86f80e
...
@@ -22,14 +22,11 @@ jobs:
...
@@ -22,14 +22,11 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip setuptools wheel
pip install tockloader
pip install tockloader
pylint
-
name
:
Test code with pylint
-
name
:
Test code with pylint
run
:
|
run
:
|
pip install pylint
./setup.sh
echo ::add-matcher::./.github/python_matcher.json
echo ::add-matcher::./.github/python_matcher.json
find . -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \;
find . ! -path "./third_party/*" -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \;
#find . ! -path "./third_party/*" -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \;
yapf
:
yapf
:
runs-on
:
ubuntu-18.04
runs-on
:
ubuntu-18.04
...
@@ -45,6 +42,5 @@ jobs:
...
@@ -45,6 +42,5 @@ jobs:
pip install yapf tockloader
pip install yapf tockloader
-
name
:
Test code formatting with yapf
-
name
:
Test code formatting with yapf
run
:
|
run
:
|
./setup.sh
echo ::add-matcher::./.github/python_matcher.json
echo ::add-matcher::./.github/python_matcher.json
yapf --style=chromium --recursive --exclude third_party --diff .
yapf --style=chromium --recursive --exclude third_party --diff .
This diff is collapsed.
Click to expand it.
deploy.py
+
2
−
2
View file @
7a86f80e
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
import
colorama
import
argparse
import
argparse
import
copy
import
copy
import
os
import
os
...
@@ -25,14 +26,13 @@ import shutil
...
@@ -25,14 +26,13 @@ import shutil
import
subprocess
import
subprocess
import
sys
import
sys
import
colorama
from
tockloader.exceptions
import
TockLoaderException
from
tockloader.exceptions
import
TockLoaderException
from
tockloader
import
tab
,
tbfh
,
tockloader
from
tockloader
import
tab
,
tbfh
,
tockloader
# This structure allows us in the future to also support out-of-tree boards.
# This structure allows us in the future to also support out-of-tree boards.
SUPPORTED_BOARDS
=
{
SUPPORTED_BOARDS
=
{
"
nrf52840_dk
"
:
"
third_party/tock/boards/nordic/nrf52840dk
"
,
"
nrf52840_dk
"
:
"
third_party/tock/boards/nordic/nrf52840dk
"
,
"
nrf52840_dongle
"
:
"
third_party/tock/boards/nordic/nrf52840_dongle
"
"
nrf52840_dongle
"
:
"
third_party/tock/boards/nordic/nrf52840_dongle
"
}
}
# The STACK_SIZE value below must match the one used in the linker script
# The STACK_SIZE value below must match the one used in the linker script
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment