| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
https://github.com/python/cpython/commit/c4ef4896eac86a6759901c8546e26de4695a1389
is not yet part of any release of Python but has been backported to all
versions in Git (includeing 2.7!). It causes the tokenize.py module to
emit a synthetic NEWLINE token for files that do not in fact end with a
newline, which confuses pycodestyle's checks for blank lines at the end
of a file. Fortunately the synthetic NEWLINE tokens are easy to detect
(the token text is "").
Fixes #786
|
|\ \
| | |
| | | |
Make W605 point to the invalid sequence
|
| | |
| | |
| | |
| | | |
str.count() can limit the counting to a range of string positions.
|
|/ /
| |
| |
| |
| |
| |
| | |
Instead of having W605 point to the beginning of the string literal,
make it point to the precise line and column of the invalid escape sequence.
This is more helpful when you have multiline string literals.
|
|\ \
| | |
| | | |
Fix some spelling in CONTRIBUTING.rst
|
| |/ |
|
|\ \
| | |
| | | |
Add testing and document support for Python 3.7
|
| | |
| | |
| | |
| | |
| | |
| | | |
Python 3.7 was released on June 27, 2018.
https://docs.python.org/3/whatsnew/3.7.html
|
|\ \ \
| |_|/
|/| | |
Fix line offset for 'invalid escape sequence'
|
| | | |
|
|/ / |
|
|\ \
| |/
|/| |
Remove suggestion and documentation of using unmaintained nose
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
The nose project has ceased development. The last commit is from Mar 3,
2016. From their docs page:
https://nose.readthedocs.io/
> Note to Users
>
> Nose has been in maintenance mode for the past several years and will
> likely cease without a new person/team to take over maintainership.
> New projects should consider using Nose2, py.test, or just plain
> unittest/unittest2.
|
|\
| |
| | |
Comment spelling fix
|
|/ |
|
|\
| |
| | |
Update all pypi.python.org URLs to pypi.org
|
|/
|
|
|
|
| |
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
|
|\
| |
| | |
Remove support for EOL Python 2.6 and 3.3
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python 2.6 an 3.3 are end of life. They are no longer receiving bug
fixes, including for security issues. Python 2.6 went EOL on 2013-10-29
and 3.3 on 2017-09-29. For additional details on support Python
versions, see:
https://devguide.python.org/#status-of-python-branches
Removing support for EOL Pythons will reduce testing and maintenance
resources. Removed all workarounds for older Pythons.
Updated trove classifiers and documentation to better communicate
supported Python versions.
Additionally, pass python_requires argument to setuptools. Helps pip
decide what version of the library to install.
https://packaging.python.org/tutorials/distributing-packages/#python-requires
> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
Can now use more modern Python syntax including dictionary comprehension
as well as more generators.
Closes #755
|
|\
| |
| | |
Change the position pointed out by W504
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Support for W505 - doc line length
|
| | | |
|
|/ / |
|
| |
| |
| | |
Closes gh-685
|
|/
|
|
|
| |
This improves E252 to allow default arguments like `_default(f=1)`.
Closes gh-753
|
|\
| |
| | |
Change the position pointed out by W605
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
Add changelog items for 2.3.1...master
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
This adds some module level configuration points for users to define
how many blank lines they want in their code. It paves the way for
someone to develop a flake8 plugin to configure this in pycodestyle.
Fixes #732
|
|
|
|
|
|
|
|
| |
* Add special case to maximum_line_length to ignore long shebang lines.
* Add test for ignoring long shebang lines.
* Clean up shebang line check.
|
|
|
|
|
|
|
|
| |
Python 3.7 added a warning for a future feature of nested regular expressions. To avoid
this warning we escape what is not a nested regex. This also keeps track of the `async`
keyword and handles it appropriately.
Closes gh-728
|
|\
| |
| | |
Add W606 warning for async and await keywords in Python 3.7
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
From https://docs.python.org/3/whatsnew/3.6.html#new-keywords
> async and await are not recommended to be used as variable, class,
> function or module names. Introduced by PEP 492 in Python 3.5, they
> will become proper keywords in Python 3.7. Starting in Python 3.6, the
> use of async or await as names will generate a DeprecationWarning.
By adding a warning to pycodestyle.py these future warnings and syntax
errors can be caught during static code analysis.
The await expression tests were taken from PEP-492.
https://www.python.org/dev/peps/pep-0492/#id58
|
| | |
|
|\ \
| | |
| | | |
Add E252 on missing whitespace for annotated parameter defaults
|
| | | |
|
|\ \ \
| | | |
| | | | |
Describe code W504 line break after binary operator
|
|/ / /
| | |
| | | |
Cross reference changes in pull request #502 which added this.
|
|\ \ \
| | | |
| | | | |
Add W504 for line breaks before binary operators
|
| | | | |
|
| | | | |
|