OLD | NEW |
1 # flake8-eyeo | 1 # flake8-eyeo |
2 | 2 |
3 A [flake8](https://flake8.readthedocs.io) extension that checks for compliance | 3 A [flake8](https://flake8.readthedocs.io) extension that checks for compliance |
4 with the | 4 with the |
5 [Adblock Plus coding style guide](https://adblockplus.org/coding-style#python) | 5 [Adblock Plus coding style guide](https://adblockplus.org/coding-style#python) |
6 which is used for all eyeo projects, and some bad practices which flake8 doesn't | 6 which is used for all eyeo projects, and some bad practices which flake8 doesn't |
7 handle by default. | 7 handle by default. |
8 | 8 |
9 | 9 |
10 ## Installation | 10 ## Installation |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 ### Redundancy and complexity | 41 ### Redundancy and complexity |
42 | 42 |
43 * `A201`: Redundant or superfluos `global` or `nonlocal` declaration | 43 * `A201`: Redundant or superfluos `global` or `nonlocal` declaration |
44 * `A202`: Dead code after block is left | 44 * `A202`: Dead code after block is left |
45 * `A303`: Unused expression | 45 * `A303`: Unused expression |
46 * `A204`: Redundant or superfluos pass statement | 46 * `A204`: Redundant or superfluos pass statement |
47 * `A205`: Superfluos empty block | 47 * `A205`: Superfluos empty block |
48 * `A206`: Extraneous `else` statement after block is left | 48 * `A206`: Extraneous `else` statement after block is left |
49 * `A207`: Duplicate key in dict or set | 49 * `A207`: Duplicate key in dict or set |
| 50 * `A208`: Redundant comparisons |
50 | 51 |
51 | 52 |
52 ### Error-prone practices | 53 ### Error-prone practices |
53 | 54 |
54 * `A301`: Discouraged APIs | 55 * `A301`: Discouraged APIs |
55 * `A302`: Redefinition of built-in name | 56 * `A302`: Redefinition of built-in name |
56 * `A303`: Non-default source file encoding | 57 * `A303`: Non-default source file encoding |
OLD | NEW |