LEFT | RIGHT |
1 # This file is part of Adblock Plus <https://adblockplus.org/>, | 1 # This file is part of Adblock Plus <https://adblockplus.org/>, |
2 # Copyright (C) 2006-present eyeo GmbH | 2 # Copyright (C) 2006-present eyeo GmbH |
3 # | 3 # |
4 # Adblock Plus is free software: you can redistribute it and/or modify | 4 # Adblock Plus is free software: you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License version 3 as | 5 # it under the terms of the GNU General Public License version 3 as |
6 # published by the Free Software Foundation. | 6 # published by the Free Software Foundation. |
7 # | 7 # |
8 # Adblock Plus is distributed in the hope that it will be useful, | 8 # Adblock Plus is distributed in the hope that it will be useful, |
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 def add_options(cls, parser): | 502 def add_options(cls, parser): |
503 parser.extend_default_ignore([ | 503 parser.extend_default_ignore([ |
504 # We don't want to make doc strings mandatory | 504 # We don't want to make doc strings mandatory |
505 # but merely lint existing doc strings. | 505 # but merely lint existing doc strings. |
506 'D1', | 506 'D1', |
507 # Adding a comma after variable args/kwargs | 507 # Adding a comma after variable args/kwargs |
508 # is a syntax error in Python 2 (and <= 3.4). | 508 # is a syntax error in Python 2 (and <= 3.4). |
509 'C815', | 509 'C815', |
510 ]) | 510 ]) |
511 | 511 |
| 512 # Remove everything but W503 & W504 from the built-in default ignores. |
| 513 parser.parser.defaults['ignore'] = 'W503,W504' |
| 514 |
512 | 515 |
513 for checker in [check_ast, check_non_default_encoding, check_quotes, | 516 for checker in [check_ast, check_non_default_encoding, check_quotes, |
514 check_redundant_parenthesis, DefaultConfigOverride]: | 517 check_redundant_parenthesis, DefaultConfigOverride]: |
515 checker.name = 'eyeo' | 518 checker.name = 'eyeo' |
516 checker.version = __version__ | 519 checker.version = __version__ |
LEFT | RIGHT |