forked fromtrekhleb/learn-python
- Notifications
You must be signed in to change notification settings - Fork0
Commit45a36d3
Travis CI: Add flake8 to the testing (trekhleb#5)
* Travis CI: Add flake8 to the testing Add [flake8](http://flake8.pycqa.org) tests to find Python syntax errors and undefined names.__E901,E999,F821,F822,F823__ are the "_showstopper_" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.* F821: undefined name `name`* F822: undefined name `name` in `__all__`* F823: local variable name referenced before assignment* E901: SyntaxError or IndentationError* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree* learn-python should not teach the antipattern of bare exceptionsSee PEP8 andhttps://realpython.com/the-most-diabolical-python-antipattern* noqa F821 - We are intentionally raising NameError* Two consecutive blank lines before a function definition* flake8 --max-complexity=10 --> 12* pylint: disable=broad-except1 parent72f2e5c commit45a36d3
File tree
4 files changed
+11
-3
lines changed- src
- control_flow
- data_types
- modules
4 files changed
+11
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 |
| |
12 | 17 |
| |
13 | 18 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| 45 | + | |
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
| |||
54 | 56 |
| |
55 | 57 |
| |
56 | 58 |
| |
57 |
| - | |
58 |
| - | |
| 59 | + | |
| 60 | + | |
59 | 61 |
| |
60 | 62 |
| |
61 | 63 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
|
0 commit comments
Comments
(0)