summaryrefslogtreecommitdiff
path: root/pycodestyle.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow __all__ to be typedissue/1018Ian Stapleton Cordasco2021-10-011-1/+1
| | | | Closes gh-1018
* Merge pull request #995 from PyCQA/remove_indent_size_strIan Stapleton Cordasco2021-09-131-6/+3
|\ | | | | remove indent_size_str
| * remove indent_size_strremove_indent_size_strAnthony Sottile2021-05-081-6/+3
| |
* | Fix E225 for lambdasZac-HD2021-09-131-1/+3
|/
* Merge pull request #993 from asottile/perf_hackAnthony Sottile2021-05-061-0/+7
|\ | | | | add performance hack to improve tokenize speed
| * add performance hack to improve tokenize speedAnthony Sottile2021-05-041-0/+7
| | | | | | | | in profiles, this attributed somewhere between 4% and 14% of pycodestyle's execution time
* | improve performance of bare_except checkAnthony Sottile2021-05-041-2/+2
|/ | | | | | - despite `re.compile(...)` being cached, this still amounts to 60% of the overhead of the `bare_except` check - overall, this improved pycodestyle performance by about .25% (.0025)
* Small improvementMarc Mueller2021-05-031-3/+2
|
* Moved to existing checkMarc Mueller2021-05-031-26/+11
|
* Add whitespace checks for match and caseMarc Mueller2021-05-031-0/+27
|
* issoftkeyword was added in py39Marc Mueller2021-05-031-1/+1
|
* Small fix to version_info comparisonMarc Mueller2021-05-031-1/+1
|
* Changes after reviewMarc Mueller2021-05-021-1/+4
|
* Fix false-positive E211 with match and caseMarc Mueller2021-05-021-3/+7
|
* detect multiple E712 in a lineAnthony Sottile2021-04-021-2/+4
|
* 2.7.0Anthony Sottile2021-03-141-1/+1
|
* use tokenize.open to avoid incorrect line endings at beginning of fileAnthony Sottile2021-01-071-4/+2
|
* Support for space indents with size other than 4Jason Ansel2020-11-181-12/+28
| | | | This is an updated revision of pull requests #206 and #524
* fix skipping of physical checks when file does not end in newlineAnthony Sottile2020-09-111-5/+14
|
* 2.6.0Anthony Sottile2020-05-081-1/+1
|
* Merge pull request #931 from suzil/fix/767/chained-is-not-E714Ian Stapleton Cordasco2020-05-081-1/+2
|\ | | | | E714: fix chained `is not`
| * HandleSusannah Klaneček2020-05-011-2/+2
| |
| * E714: fix chained is notSusannah Klaneček2020-05-011-1/+2
| | | | | | | | Closes #767
* | Merge pull request #927 from asottile/allow_typing_one_liners_againIan Stapleton Cordasco2020-05-081-10/+40
|\ \ | |/ |/| re-allow decorated one-liners
| * re-allow decorated one-linersAnthony Sottile2020-04-271-10/+40
| |
* | E306: fix detection inside `async def`E306_async_defAnthony Sottile2020-04-281-1/+1
|/
* 2.6.0a1Anthony Sottile2020-04-021-1/+1
|
* Merge pull request #918 from asottile/only_positionalAnthony Sottile2020-03-241-1/+10
|\ | | | | Fix E225 for PEP 570 all positional-only arguments
| * Fix E225 for PEP 570 all positional-only argumentsAnthony Sottile2020-03-231-1/+10
| |
* | Allow N-and-fewer blank lines before the first top level thingAnthony Sottile2020-03-231-1/+1
|/
* Merge pull request #913 from anntzer/afteronelinerblockAnthony Sottile2020-03-231-0/+1
|\ | | | | Correctly allow *two* blank lines after a block of one-liners.
| * Correctly allow *two* blank lines after a block of one-liners.Antony Lee2020-02-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously ``` def oneliner(): pass def otheroneliner(): pass def really_long_func(): with_some_contents ``` would raise an "E302: expected 2 blank lines, found zero" at the last line of the one liner. Ultimately, this is due to `expand_indent` being passed a line whose contents are just a newline and nothing else, and `expand_indent` thinking that the line is indented by 1 character (the newline), which is wrong. Fix that by just stripping the newline, and modify a test to cover this case.
* | Support visual indent of continuation lines after with/assert/raise.Antony Lee2020-02-261-0/+3
|/ | | | | "with" is likely the most common case, and this indentation is explicitly given as example by PEP8 (under "maximum line length").
* Merge pull request #897 from sobolevn/issue-768Anthony Sottile2020-02-191-1/+1
|\ | | | | Adds matmul operator support, fixes #768
| * Adds matmul operator support, fixes #768sobolevn2019-12-051-1/+1
| |
* | Merge branch 'master' into masterNikita Serba2020-01-221-10/+21
|\ \ | |/
| * Merge pull request #879 from FichteForks/pr/pep-572Ian Stapleton Cordasco2019-10-211-5/+12
| |\ | | | | | | Add support for assignment expressions
| | * Add support for assignment expressionsFichteFoll2019-07-311-5/+12
| | | | | | | | | | | | | | | | | | Introduced in Python 3.8 with PEP-572. Refer to https://www.python.org/dev/peps/pep-0572.
| * | Merge pull request #834 from EricCousineau-TRI/issue/833Ian Stapleton Cordasco2019-09-251-4/+5
| |\ \ | | |/ | |/| E402: Add "with" statement to allowed keywords
| | * E402: Add "elif" statement to allowed keywordsEric Cousineau2019-09-251-1/+1
| | |
| | * E402: Add "if" statement to allowed keywordsEric Cousineau2019-01-301-1/+2
| | |
| | * E402: Add "with" statement to allowed keywordsEric Cousineau2019-01-301-4/+4
| | |
| * | Ellipsis is not a binary operatorAnthony Sottile2019-07-111-1/+4
| | |
* | | Update pycodestyle.pyNikita Serba2020-01-221-1/+1
| | | | | | | | | Co-Authored-By: Anthony Sottile <asottile@umich.edu>
* | | Added support for PEP 570 (#867)Nikita S2019-07-021-0/+4
|/ /
* | Fix E302 false negative in presence of decorators.Antony Lee2019-03-261-6/+7
| |
* | Add line breaks in commentSebastian Rettenberger2019-03-081-1/+2
| |
* | Add lines breaksSebastian Rettenberger2019-03-081-2/+4
| |
* | Fixes some issues with E741 detectionSebastian Rettenberger2019-03-081-4/+32
| |
* | Fix E721 false positiveAnthony Sottile2019-03-011-1/+1
| |