Skip to content

Commit

Permalink
Merge branch 'master' into mgerlach/add-regmap-debugfs
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgamatt committed Oct 29, 2020
2 parents 6599f0f + cc1f8e4 commit 45263be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/python-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ name: python static analysis
on:
push:
paths:
- 'python/**'
- 'tools/extra/fpgabist/**'
- 'tools/extra/packager/*.py'
- 'tools/extra/packager/metadata/**'
- 'tools/extra/packager/test/*.py'
- 'tools/extra/pac_hssi_config/*.py'
- 'tools/extra/fpgadiag/**'
- 'tools/utilities/**'
- 'scripts/*.py'
- 'platforms/scripts/platmgr/**'
- '**.py'
- '.github/workflows/python-static-analysis.yml'

jobs:
Expand All @@ -33,8 +24,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 bandit
- name: Lint
python -m pip install pylint flake8 bandit
- name: Pylint lint
run: |
pylint $(find ${{ github.workspace }} -name "*.py") \
-E -f parseable --disable=E0401 --ignore=__init__.py \
--ignore-patterns="test_.*.py" \
| tee ${{ github.workspace }}/pylint.log
- name: Flake8 lint
run: |
flake8 $(find ${{ github.workspace }} -name "*.py") \
--count --show-source --statistics \
Expand All @@ -53,6 +50,7 @@ jobs:
with:
name: static-analysis
path: |
${{ github.workspace }}/pylint.log
${{ github.workspace }}/flake8.log
${{ github.workspace }}/bandit.log
${{ github.workspace }}/bandit.log.csv
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ matrix:
env:
- BUILD_JOB=Code Style Check
install:
- pip install --user pylint
- pip install --user pycodestyle
- pip install --user jsonschema
- pip install --user jinja2
- python3 -m pip install --user pylint
- python3 -m pip install --user pycodestyle
- python3 -m pip install --user jsonschema
- python3 -m pip install --user jinja2
addons:
apt:
packages:
Expand Down
2 changes: 1 addition & 1 deletion platforms/scripts/rtl_src_config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ quartus_tag_map = {
'.qip': 'QIP_FILE',
'.json': 'MISC_FILE',
'.tcl': 'SOURCE_TCL_SCRIPT_FILE',
'.stp': 'SIGNALTAP_FILE',
'.stp': 'USE_SIGNALTAP_FILE',
'.hex': 'MIF_FILE',
'.mif': 'MIF_FILE'
}
Expand Down

0 comments on commit 45263be

Please sign in to comment.