File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 7
7
- " 3.7"
8
8
install :
9
9
- pip install pylint
10
+ - pip install flake8
10
11
- pip install pytest --upgrade
11
12
script :
12
13
- pylint *.py
14
+ - flake8 *.py
13
15
- pytest
Original file line number Diff line number Diff line change @@ -127,26 +127,31 @@ $ python -m pytest && python3 -m pytest
127
127
128
128
### Coding Style
129
129
130
- The code in the script is written to follow [ the PEP8 style guide] ( https://www.python.org/dev/peps/pep-0008/ ) .
131
- There is a pylint configuration file to check the coding style. You can install pylint
132
- with pip.
130
+ The code in the script is written to follow
131
+ [ the PEP8 style guide] ( https://www.python.org/dev/peps/pep-0008/ ) .
132
+ Both pylint and flake8 are used to check the coding style. You can install
133
+ both with pip.
133
134
134
135
```
135
136
$ sudo pip install pylint
137
+ $ sudo pip install flake8
136
138
```
137
139
138
140
Or, for Python 3:
139
141
140
142
```
141
143
$ sudo pip3 install pylint
144
+ $ sudo pip3 install flake8
142
145
```
143
146
144
- You can run the linter by running ` pylint *.py ` in the top directory of the repository.
145
- If you have both Python 2.7 and Python 3 installed, you can run the linter with
146
- both versions with this command:
147
+ You can run the linters by running ` pylint *.py ` and ` flake8 *.py ` in the top
148
+ directory of the repository.
149
+ If you have both Python 2.7 and Python 3 installed, you can run the linters
150
+ with both versions with these commands:
147
151
148
152
```
149
153
$ python -m pylint *.py && python3 -m pylint *.py
154
+ $ python -m flake8 *.py && python3 -m flake8 *.py
150
155
```
151
156
152
157
License
You can’t perform that action at this time.
0 commit comments