Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: flake8-eyeo/flake8_eyeo.py

Issue 29977590: Issue 7196 - Centralize flake8 configuration
Left Patch Set: Created Jan. 10, 2019, 12:46 a.m.
Right Patch Set: Created Jan. 10, 2019, 2:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « cms-dev/tox.ini ('k') | flake8-eyeo/setup.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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__
LEFTRIGHT

Powered by Google App Engine
This is Rietveld