mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 22:34:17 +00:00
Spelling and grammar fixes
This commit is contained in:
parent
5221014947
commit
9f74e7a4ca
5 changed files with 5 additions and 5 deletions
|
|
@ -349,7 +349,7 @@ min-public-methods=2
|
||||||
# Maximum number of public methods for a class (see R0904).
|
# Maximum number of public methods for a class (see R0904).
|
||||||
max-public-methods=20
|
max-public-methods=20
|
||||||
|
|
||||||
# Maximum number of boolean expressions in a if statement
|
# Maximum number of boolean expressions in an if statement
|
||||||
max-bool-expr=5
|
max-bool-expr=5
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
Contributing to Flake8
|
Contributing to Flake8
|
||||||
========================
|
========================
|
||||||
|
|
||||||
There are many ways to contriubte to |Flake8|, and we encourage them all:
|
There are many ways to contribute to |Flake8|, and we encourage them all:
|
||||||
|
|
||||||
- contributing bug reports and feature requests
|
- contributing bug reports and feature requests
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ Let's do that next.
|
||||||
return 'Example formatter: {0!r}'.format(error)
|
return 'Example formatter: {0!r}'.format(error)
|
||||||
|
|
||||||
With that we're done. Obviously this isn't a very useful formatter, but it
|
With that we're done. Obviously this isn't a very useful formatter, but it
|
||||||
should highlight the simplicitly of creating a formatter with Flake8. If we
|
should highlight the simplicity of creating a formatter with Flake8. If we
|
||||||
wanted to instead create a formatter that aggregated the results and returned
|
wanted to instead create a formatter that aggregated the results and returned
|
||||||
XML, JSON, or subunit we could also do that. |Flake8| interacts with the
|
XML, JSON, or subunit we could also do that. |Flake8| interacts with the
|
||||||
formatter in two ways:
|
formatter in two ways:
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -86,7 +86,7 @@ setuptools.setup(
|
||||||
],
|
],
|
||||||
'flake8.extension': [
|
'flake8.extension': [
|
||||||
'F = flake8.plugins.pyflakes:FlakesChecker',
|
'F = flake8.plugins.pyflakes:FlakesChecker',
|
||||||
# PEP-0008 checks provied by PyCQA/pycodestyle
|
# PEP-0008 checks provided by PyCQA/pycodestyle
|
||||||
PEP8_PLUGIN('tabs_or_spaces'),
|
PEP8_PLUGIN('tabs_or_spaces'),
|
||||||
PEP8_PLUGIN('tabs_obsolete'),
|
PEP8_PLUGIN('tabs_obsolete'),
|
||||||
PEP8_PLUGIN('trailing_whitespace'),
|
PEP8_PLUGIN('trailing_whitespace'),
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ class Violation(_Violation):
|
||||||
|
|
||||||
def is_inline_ignored(self, disable_noqa):
|
def is_inline_ignored(self, disable_noqa):
|
||||||
# type: (Violation) -> bool
|
# type: (Violation) -> bool
|
||||||
"""Determine if an comment has been added to ignore this line.
|
"""Determine if a comment has been added to ignore this line.
|
||||||
|
|
||||||
:param bool disable_noqa:
|
:param bool disable_noqa:
|
||||||
Whether or not users have provided ``--disable-noqa``.
|
Whether or not users have provided ``--disable-noqa``.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue