Skip to content

Commit 7e8a860

Browse files
authored
Add flake8 check for pygen (chipsalliance#589)
1 parent 8f121bd commit 7e8a860

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.flake8

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[flake8]
2+
3+
# Maximum line length
4+
max-line-length = 100
5+
6+
ignore =
7+
# Ignore unexpected spaces around keyword / parameter equals
8+
E251,
9+
# Do not complain about line breaks after operators
10+
W504

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ language: python
22
dist: xenial
33
matrix:
44
include:
5-
- python: 3.5
6-
env: TOX_ENV=py35
75
- python: 3.6
86
env: TOX_ENV=py36
97
- python: 3.7
@@ -15,3 +13,4 @@ install:
1513
script:
1614
- sphinx-build -E -W -b linkcheck docs/source build
1715
- pip uninstall -y riscv-dv
16+
- flake8 --show-source pygen/pygen_src/ --config=.flake8

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sphinxcontrib-log-cabinet
66
sphinx-issues
77
sphinx_rtd_theme
88
rst2pdf
9+
flake8

0 commit comments

Comments
 (0)