Commit graph

1590 commits

Author SHA1 Message Date
Thomas Grainger
f1a621e5cd
ignore .coverage files in --parallel-mode 2019-05-01 17:08:10 +01:00
Anthony Sottile
98beabdcc5 Merge branch 'tokenize_error' into 'master'
Fix crash when file fails to tokenize but parses

Closes #532

See merge request pycqa/flake8!314
2019-04-07 14:54:35 +00:00
Anthony Sottile
38ab47702a Fix crash when file fails to tokenize but parses 2019-04-07 07:42:00 -07:00
Anthony Sottile
2b333fad1a Merge branch 'master' into 'master'
document max-doc-length option

Closes #524

See merge request pycqa/flake8!313
2019-03-20 15:40:02 +00:00
Antoine Gallix
e22ed0743e document max-doc-length option 2019-03-20 15:12:14 +01:00
Anthony Sottile
d365e06d7e Merge branch 'fix_black' into 'master'
Updates for changes in black's cli

See merge request pycqa/flake8!312
2019-03-18 19:24:32 +00:00
Anthony Sottile
65f97106ae Updates for changes in black's cli 2019-03-18 12:21:00 -07:00
Anthony Sottile
fadedefae2 Merge branch 'charlesfrye/fix-prelim-args' into 'master'
Fixes handling of empty lists by Application

Closes #518

See merge request pycqa/flake8!310
2019-03-11 22:00:01 +00:00
Charles Frye
e9b9ebb58e makes prelim_args test more explicit 2019-03-11 14:05:34 -07:00
Charles Frye
16ca17388a Fixes handling of empty lists by Application
`Application.parse_preliminary_options_and_args` was previously, against
expectations, treating empty lists passed as the `argv` argument the
same way it treated `None`s.

This has been addressed and the correct behavior tested for in a unit
test of the `Application` class.

See issue #518 for details.
2019-03-07 20:27:59 -08:00
Anthony Sottile
88caf5ac48 Release 3.7.7 2019-02-25 08:36:58 -08:00
Anthony Sottile
a0c9a4240d Merge branch 'pickleable_plugin_error' into 'master'
Ensure exceptions are pickleable

Closes #505

See merge request pycqa/flake8!308
2019-02-20 22:48:41 +00:00
Anthony Sottile
e8de066f94 Ensure exceptions are pickleable 2019-02-19 08:38:37 -08:00
Anthony Sottile
9b770f590e Release 3.7.6 2019-02-18 11:58:12 -08:00
Ian Stapleton Cordasco
59c2f093de Merge branch 'mypy_improvements' into 'master'
Improve a few mypy type annotations

See merge request pycqa/flake8!307
2019-02-17 15:23:30 +00:00
Ian Stapleton Cordasco
a21d74152b Merge branch 'perf_only_one_proc' into 'master'
Speed up flake8 when only 1 filename is passed

See merge request pycqa/flake8!305
2019-02-17 15:23:12 +00:00
Ian Stapleton Cordasco
2170f54cb3 Merge branch 'less_monkeypatch' into 'master'
Remove pyflakes monkeypatching

See merge request pycqa/flake8!306
2019-02-17 15:22:44 +00:00
Anthony Sottile
c71fadb18c Improve a few mypy type annotations 2019-02-17 00:16:19 -08:00
Anthony Sottile
e8f43e1243 Speed up flake8 when only 1 filename is passed
~40% improvement over status quo (perf measurements are best-of-5)

### before

```console
$ time flake8 /dev/null

real    0m0.337s
user    0m0.212s
sys     0m0.028s
```

### after

```console
$ time flake8 /dev/null

real    0m0.197s
user    0m0.182s
sys     0m0.012s
```
2019-02-17 00:15:00 -08:00
Anthony Sottile
a252a0b138 Remove pyflakes monkeypatching 2019-02-16 18:05:00 -08:00
Anthony Sottile
684ffb3306 Merge branch 'update-options-ignore-defaults' into 'master'
Update documented --ignore defaults to match code

See merge request pycqa/flake8!304
2019-02-16 17:29:30 +00:00
Kevin Locke
d225687c02 options.rst: Update --ignore defaults to match code
3d512ae added W503 and W504 to defaults.IGNORE, but the documentation
was never updated.  This commit updates the docs to match the code.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-16 10:16:12 -07:00
Anthony Sottile
dc7b082b96 Merge branch 'allow_multiple_letters_in_codes' into 'master'
FIX 507: allow multiple letters in codes

See merge request pycqa/flake8!303
2019-02-11 14:25:26 +00:00
Илья Лебедев
8e99b531cf FIX 507: allow multiple letters in codes 2019-02-11 17:00:34 +03:00
Anthony Sottile
e7b8493b5d Release 3.7.5 2019-02-04 08:37:16 -08:00
Anthony Sottile
a35ed4a998 Merge branch 'undefinde_local_code' into 'master'
Fix reporting of UndefinedLocal pyflakes error

Closes #503

See merge request pycqa/flake8!302
2019-02-01 22:54:10 +00:00
Anthony Sottile
8df38c92b9 Fix reporting of UndefinedLocal pyflakes error 2019-01-31 21:55:10 -08:00
Anthony Sottile
79148a02ee Merge branch '3_7' into 'master'
Remove noqa comments now that 3.7 has been released

See merge request pycqa/flake8!301
2019-02-01 05:53:36 +00:00
Anthony Sottile
3d54751236 Remove noqa comments now that 3.7 has been released 2019-01-31 20:12:23 -08:00
Anthony Sottile
afc57d471d Release 3.7.4 2019-01-31 19:53:02 -08:00
Anthony Sottile
218bacb108 Merge branch 'update-pyflakes-error-codes' into 'master'
Update documentation with new pyflakes error codes.

See merge request pycqa/flake8!300
2019-01-31 22:06:16 +00:00
Greg Back
cd55068eac Update documentation with new pyflakes error codes.
- F632 and F633 were missing
- F721 and F722 were combined in the same row
- F723 was missing
2019-01-31 16:01:25 -06:00
Anthony Sottile
59fdc5250c Merge branch 'performance_style_guide_for' into 'master'
Fix performance regression with per-file-ignores

Closes #501

See merge request pycqa/flake8!299
2019-01-31 18:58:02 +00:00
Anthony Sottile
c85b282b05 Fix performance regression with per-file-ignores
With a large number of errors, filenames, and per-file-ignores the style guide
selection would take a significant portion of execution time
(python3 70% / python2 99.9%).

Caching the styleguide lookup by filename eliminates this bottleneck.
2019-01-31 09:23:02 -08:00
Anthony Sottile
ee7081c8ce Release 3.7.3 2019-01-30 19:55:58 -08:00
Anthony Sottile
9269987cca Merge branch 'improve_error_message' into 'master'
Improve error message for malformed per-file-ignores

Closes #489

See merge request pycqa/flake8!298
2019-01-31 03:38:08 +00:00
Anthony Sottile
f955a98b71 Improve error message for malformed per-file-ignores 2019-01-30 19:33:54 -08:00
Anthony Sottile
cfe9e92999 Merge branch 'graceful_ignore_per_file_ignores' into 'master'
Gracefully ignore flake8-per-file-ignores if installed

See merge request pycqa/flake8!297
2019-01-31 03:09:02 +00:00
Anthony Sottile
f7a7e58119 Gracefully ignore flake8-per-file-ignores if installed 2019-01-30 19:01:49 -08:00
Anthony Sottile
7ba8da2a61 Merge branch 'patch-1' into 'master'
Fix typo in 3.7.2.rst

See merge request pycqa/flake8!296
2019-01-31 00:33:31 +00:00
wuck
7fc4732fed Fix typo in 3.7.2.rst 2019-01-31 00:31:37 +00:00
Anthony Sottile
cbffa49a0b Merge branch 'fix_statistics' into 'master'
Fix flake8 --statistics

Closes #499

See merge request pycqa/flake8!295
2019-01-30 23:05:48 +00:00
Anthony Sottile
b0ecf3d28f Fix flake8 --statistics 2019-01-30 14:39:24 -08:00
Anthony Sottile
e21d74fcc4 Merge branch 'typing_3_5_1' into 'master'
Make uses of typing compatible with python 3.5.1 / 3.5.0

Closes #498

See merge request pycqa/flake8!294
2019-01-30 22:20:17 +00:00
Anthony Sottile
eb886a268f Make uses of typing compatible with python 3.5.1 / 3.5.0 2019-01-30 14:03:55 -08:00
Anthony Sottile
3d1a4265a7 Release 3.7.2 2019-01-30 12:51:49 -08:00
Anthony Sottile
077b640a86 Merge branch 'make_notifier_gone' into 'master'
Fix legacy api invocation of make_notifier

Closes #497

See merge request pycqa/flake8!293
2019-01-30 19:06:24 +00:00
Anthony Sottile
137b45ac2f Fix legacy api invocation of make_notifier 2019-01-30 11:00:36 -08:00
Anthony Sottile
941b120819 Merge branch 'is/490' into 'master'
Fix bug flake8 --diff

Closes #490

See merge request pycqa/flake8!292
2019-01-30 18:09:54 +00:00
Anthony Sottile
915184a1e9 Add integration test for flake8 --diff 2019-01-30 09:54:13 -08:00