Skip to content

Commit b642466

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 614e18d + e8a006f commit b642466

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,12 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install -r requirements.txt
24-
- name: Lint with flake8
25-
run: |
26-
pip install flake8
27-
# stop the build if there are Python syntax errors or undefined names
28-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3124
- name: install coverage
3225
run: pip install coverage
3326
- name: install mypy
3427
run: pip install mypy
28+
- name: install pycodestyle
29+
run: pip install pycodestyle
3530
- name: mypy check
3631
run: |
3732
find AerialNavigation -name "*.py" | xargs mypy
@@ -43,7 +38,10 @@ jobs:
4338
find PathPlanning -name "*.py" | xargs mypy
4439
find PathTracking -name "*.py" | xargs mypy
4540
find SLAM -name "*.py" | xargs mypy
41+
- name: do diff style check
42+
run: bash rundiffstylecheck.sh
4643
- name: do all unit tests
4744
run: bash runtests.sh
4845

4946

47+

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dependencies:
44
- pip
55
- matplotlib
66
- scipy
7-
- numpy==1.15
7+
- numpy
88
- pandas
99
- coverage
1010
- pip:

rundiffstylecheck.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
echo "$(basename $0) start!"
3+
VERSION=v0.1.3
4+
wget https://github.com/AtsushiSakai/DiffSentinel/archive/${VERSION}.zip
5+
unzip ${VERSION}.zip
6+
./DiffSentinel*/starter.sh HEAD origin/master
7+
check_result=$?
8+
rm -rf ${VERSION}.zip DiffSentinel*
9+
if [[ ${check_result} -ne 0 ]];
10+
then
11+
echo "Error: Your changes contain pycodestyle errors."
12+
exit 1
13+
fi
14+
echo "$(basename $0) done!"
15+
exit 0

0 commit comments

Comments
 (0)