Changelog
=========
2.12.0 (2024-06-15)
-------------------
Changes:
* E721: Fix false positive of the form `x.type(...) ==`. PR #1228.
* E502: Fix false-negative with a backslash escape in a comment. PR #1234.
* E204: New lint forbidding whitespace after decorator `@`. PR #1247.
2.11.1 (2023-10-12)
-------------------
Changes:
* E275: fix false positive with fstrings containing keyword parts in python 3.12
2.11.0 (2023-07-29)
-------------------
Changes:
* Drop EOL python 3.6 / 3.7. PR #1129, #1160.
* Add support for python 3.12. PR #1147, #1148, #1152, #1153, #1154, #1163,
#1164, #1165, #1166, #1176, #1177, #1182.
* E721: adjust handling of type comparison. Allowed forms are now
``isinstance(x, t)`` or ``type(x) is t``. PR #1086, #1167.
* Remove handling of python 2 ``<>`` operator. PR #1161.
* W606: removed. ``async`` / ``await`` are always keywords. PR #1162.
* Internal: move tests to pytest. PR #1168, #1169, #1171, #1173, #1174, #1175.
* Remove handling of python 2 ``ur''`` strings. PR #1181.
2.10.0 (2022-11-23)
-------------------
Changes:
* E231: allow trailing comma inside 1-tuples in ``[]``. PR #1108.
* W601, W602, W603, W604: removed (no longer relevant in python 3). PR #1111.
* E741: also apply to lambdas. PR #1106.
* E741: fix false positive for comparison operators. PR #1118.
2.9.1 (2022-08-03)
------------------
Changes:
* E275: fix false positive for yield expressions. PR #1091.
2.9.0 (2022-07-30)
------------------
Changes:
* E221, E222, E223, E224: add support for ``:=`` operator. PR #1032.
* Drop python 2.7 / 3.5.
* E262: consider non-breaking spaces (``\xa0``) as whitespace. PR #1035.
* Improve performance of ``_is_binary_operator``. PR #1052.
* E275: requires whitespace around keywords. PR #1063.
* Add support for python 3.11. PR #1070.
2.8.0 (2021-10-10)
------------------
Changes:
* Drop python 3.4. PR #982.
* E712: fix false negative with multiple comparisons. PR #987.
* E211: fix false positives with ``match``. PR #989.
* E772: improve performance of bare except check. PR #992.
* Backport tokenize performance improvement from python 3.10. PR #993.
* E225: fix for lambdas containing positional-only args. PR #1012.
* Remove ``indent_size_str`` "setting". PR #995.
* E402: allow ``__all__`` to be typed. PR #1019.
* E225: fix false positives for ``*`` in ``case``. PR #1003.
* E201: detect tabs as whitespace. PR #1015.
2.7.0 (2021-03-14)
------------------
Changes:
* Fix physical checks (such as W191) at end of file. PR #961.
* Add ``--indent-size`` option (defaulting to ``4``). PR #970.
* W605: fix escaped crlf false positive on windows. PR #976.
2.6.0 (2020-05-11)
------------------
Announcements:
* Anthony Sottile (@asottile) joined the team as a core developer. :tada:
Changes:
* E306: fix detection inside ``async def``. PR #929.
* E301: fix regression disallowing decorated one-liners. PR #927.
* E714: fix false positive with chained ``is not``. PR #931.
2.6.0a1 (2020-04-23)
--------------------
New checks:
* E225: require whitespace around ``and`` ``in`` ``is`` and ``or``. PR #847.
Changes:
* E117: fix indentation using tabs by treating as 8-space indents. PR #837.
* E721: fix false positive with names containg ``istype``. PR #850.
* E741: allow ``l`` as a named argument in a function call. PR #853.
* E302: fix false-negative with decorated functions. PR #859.
* W504: ellipsis (``...``) is no longer treated as a binary operator. PR #875.
* E402: allow ``with``, ``if``, ``elif``, ``else`` to guard imports. PR #834.
* Add support for assignment expressions ``:=`` (PEP 572). PR #879.
* Add support for positional-only arguments ``/`` (PEP 570). PR #872, #918.
* Add support for python 3.8.
* Add support for matrix multiplication operator ``@`` (PEP 465). PR #897.
* Support visual indent for continuation lines for ``with`` / ``assert`` /
``raise``. PR #912.
* E302: allow two blank lines after a block of one-liners. PR #913.
* E302: allow two-and-fewer newlines at the top of the file. PR #919.
2.5.0 (2019-01-29)
------------------
New checks:
* E117: Over-indented code blocks
* W505: Maximum doc-string length only when configured with --max-doc-length
Changes:
* Remove support for EOL Python 2.6 and 3.3. PR #720.
* Add E117 error for over-indented code blocks.
* Allow W605 to be silenced by `# noqa` and fix the position reported by W605
* Allow users to omit blank lines around one-liner definitions of classes and
functions
* Include the function return annotation (``->``) as requiring surrounding
whitespace only on Python 3
* Verify that only names can follow ``await``. Previously we allowed numbers
and strings.
* Add support for Python 3.7
* Fix detection of annotated argument defaults for E252
* Correct the position reported by W504
2.4.0 (2018-04-10)
------------------
New checks:
* Add W504 warning for checking that a break doesn't happen after a binary
operator. This check is ignored by default. PR #502.
* Add W605 warning for invalid escape sequences in string literals. PR #676.
* Add W606 warning for 'async' and 'await' reserved keywords being introduced
in Python 3.7. PR #684.
* Add E252 error for missing whitespace around equal sign in type annotated
function arguments with defaults values. PR #717.
Changes:
* An internal bisect search has replaced a linear search in order to improve
efficiency. PR #648.
* pycodestyle now uses PyPI trove classifiers in order to document supported
python versions on PyPI. PR #654.
* 'setup.cfg' '[wheel]' section has been renamed to '[bdist_wheel]', as
the former is legacy. PR #653.
* pycodestyle now handles very long lines much more efficiently for python
3.2+. Fixes #643. PR #644.
* You can now write 'pycodestyle.StyleGuide(verbose=True)' instead of
'pycodestyle.StyleGuide(verbose=True, paths=['-v'])' in order to achieve
verbosity. PR #663.
* The distribution of pycodestyle now includes the license text in order to
comply with open source licenses which require this. PR #694.
* 'maximum_line_length' now ignores shebang ('#!') lines. PR #736.
* Add configuration option for the allowed number of blank lines. It is
implemented as a top level dictionary which can be easily overwritten. Fixes
#732. PR #733.
Bugs:
* Prevent a 'DeprecationWarning', and a 'SyntaxError' in future python, caused
by an invalid escape sequence. PR #625.
* Correctly report E501 when the first line of a docstring is too long.
Resolves #622. PR #630.
* Support variable annotation when variable start by a keyword, such as class
variable type annotations in python 3.6. PR #640.
* pycodestyle internals have been changed in order to allow 'python3 -m
cProfile' to report correct metrics. PR #647.
* Fix a spelling mistake in the description of E722. PR #697.
* 'pycodestyle --diff' now does not break if your 'gitconfig' enables
'mnemonicprefix'. PR #706.
2.3.1 (2017-01-31)
------------------
Bugs:
* Fix regression in detection of E302 and E306; #618, #620
2.3.0 (2017-01-30)
------------------
New Checks:
* Add E722 warning for bare ``except`` clauses
* Report E704 for async function definitions (``async def``)
Bugs:
* Fix another E305 false positive for variables beginning with "class" or
"def"
* Fix detection of multiple spaces between ``async`` and ``def``
* Fix handling of variable annotations. Stop reporting E701 on Python 3.6 for
variable annotations.
2.2.0 (2016-11-14)
------------------
Announcements:
* Added Make target to obtain proper tarball file permissions; #599
Bugs:
* Fixed E305 regression caused by #400; #593
2.1.0 (2016-11-04)
------------------
Announcements:
* Change all references to the pep8 project to say pycodestyle; #530
Changes:
* Report E302 for blank lines before an "async def"; #556
* Update our list of tested and supported Python versions which are 2.6, 2.7,
3.2, 3.3, 3.4 and 3.5 as well as the nightly Python build and PyPy.
* Report
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Simple Python style checker in one Python file.zip (76个子文件)
code_resourse
setup.py 37B
.github
workflows
main.yml 1KB
.gitattributes 26B
Makefile 111B
README.rst 3KB
LICENSE 1KB
testing
__init__.py 0B
data
python3.py 925B
E10.py 617B
crlf.py 17B
E72.py 1KB
E90.py 231B
E30not.py 3KB
W60.py 330B
python35.py 76B
W29.py 405B
noqa.py 541B
E73.py 262B
E71.py 1KB
python36.py 36B
E21.py 226B
E40.py 776B
E22.py 2KB
E12not.py 13KB
E27.py 733B
E11.py 737B
python310.py 372B
python39.py 89B
E20.py 1KB
E23.py 163B
W39.py 269B
latin-1.py 152B
python311.py 266B
E74.py 277B
E70.py 502B
python312.py 449B
E12.py 7KB
utf-8.py 2KB
E30.py 2KB
utf-8-bom.py 83B
E50.py 3KB
E25.py 1KB
W19.py 3KB
E26.py 1KB
E24.py 216B
python38.py 758B
support.py 997B
tests
test_all.py 407B
__init__.py 0B
test_pycodestyle.py 559B
test_shell.py 8KB
test_E101.py 574B
test_api.py 17KB
test_self_doctests.py 975B
test_util.py 848B
test_parser.py 1KB
test_data.py 3KB
test_blank_lines.py 11KB
test_E901.py 965B
CONTRIBUTING.rst 3KB
pycodestyle.py 98KB
.pre-commit-config.yaml 699B
tox.ini 581B
docs
index.rst 2KB
make.bat 5KB
Makefile 5KB
intro.rst 26KB
conf.py 8KB
advanced.rst 3KB
api.rst 3KB
developer.rst 4KB
CHANGES.txt 27KB
dev-requirements.txt 4B
.gitignore 75B
setup.cfg 1KB
.readthedocs.yaml 66B
共 76 条
- 1
资源评论
嵌入式JunG
- 粉丝: 5519
- 资源: 763
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功