Commit graph

260 commits

Author SHA1 Message Date
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
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
Илья Лебедев
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
8df38c92b9 Fix reporting of UndefinedLocal pyflakes error 2019-01-31 21:55:10 -08: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
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
f955a98b71 Improve error message for malformed per-file-ignores 2019-01-30 19:33:54 -08:00
Anthony Sottile
f7a7e58119 Gracefully ignore flake8-per-file-ignores if installed 2019-01-30 19:01:49 -08: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
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
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
Tomer Keren
c68e7a8d3e Fix plugin exception reporting keyerror typo 2019-01-30 08:55:57 -08:00
Guillaume Lemaitre
763f68b623 BUG: fix flake8 --diff 2019-01-30 17:45:18 +01:00
Anthony Sottile
f70ae10c2b Release 3.7.1 2019-01-30 00:07:43 -08:00
Anthony Sottile
0c470a65d7 Allow capitalized filenames in per-file-ignores 2019-01-29 23:17:45 -08:00
Anthony Sottile
22f16e4081 Release v3.7.0 2019-01-29 20:28:38 -08:00
Anthony Sottile
50e7cc71b9 Latest pycodestyle 2019-01-29 08:58:10 -08:00
Anthony Sottile
3127d213f6 Some lint / mypy fixes 2019-01-24 02:15:25 -08:00
Anthony Sottile
03ea38df16 WIP: use latest pyflakes 2019-01-19 12:02:44 -08:00
Ian Stapleton Cordasco
0f3f4ff9b4 Merge branch 'master' into 'master'
Add support for optparse's 'float' and 'complex' types.

Closes #452

See merge request pycqa/flake8!261
2019-01-17 13:50:50 +00:00
Ian Stapleton Cordasco
97e4927555 Merge branch 'per_file_ignore' into 'master'
Support more syntaxes in per-file-ignores

Closes #471

See merge request pycqa/flake8!281
2019-01-17 13:32:06 +00:00
Anthony Sottile
9788b87c91 Support more syntaxes in per-file-ignores 2019-01-07 19:35:41 -08:00
Anthony Sottile
c49d03ae0a Remove unused PROJECT_FILENAMES 2019-01-07 17:23:07 -08:00
Anthony Sottile
8dc2885d94 Fix typo 2018-12-31 22:26:21 -08:00
Anthony Sottile
22b00100ab Call pyflakes api better 2018-12-31 19:14:02 -08:00
Anthony Sottile
be88d26396 Remove unused and broken flake8.listen plugin type 2018-12-27 16:55:15 -08:00
Anthony Sottile
6ad56f73da Fix noqa example comment [ci skip] 2018-12-27 17:03:55 +00:00
Tomer Keren
445d19b9de Add link to regex101 for noqa regex
This provides a step by step doc for the regular expression, and makes iterating on it much easier
2018-12-27 18:28:08 +02:00
Tomer Keren
08492ee857 Update regex to allow no space noqa 2018-12-27 18:18:52 +02:00
Anthony Sottile
cad4e5be6f Merge branch 'physical-line-multiple' into 'master'
Allow physical checks to return multiple results

See merge request pycqa/flake8!269
2018-12-10 17:47:05 +00:00
Tom Milligan
2803d0a810
checker: allow physical checks to return multiple results, add tests 2018-12-10 17:42:53 +00:00
Jon Dufresne
3216c7b362 Remove workarounds for older, unsupported Pythons 2018-12-05 06:34:55 -08:00
Anthony Sottile
b8dbb9b597 Remove unused verify_requirements argument 2018-11-21 09:30:05 -08:00
Anthony Sottile
b3f205a936 Merge branch 'entrypoints' into 'master'
Replace setuptools with entrypoints

See merge request pycqa/flake8!264
2018-11-21 17:28:55 +00:00
Ville Skyttä
dedb741fad Grammar fixes 2018-11-11 11:14:51 +02:00
Anthony Sottile
ff15ba0865 Replace setuptools with entrypoints 2018-11-05 11:08:37 -08:00
Ian Stapleton Cordasco
4439ea2025 Merge branch 'per-file-style-guide' into 'master'
Add support for per-file ignores in config

Closes #156

See merge request pycqa/flake8!259
2018-10-29 15:37:11 +00:00
Jesaja Everling
cafe780514 Clearer docs, NOQA_INLINE_REGEXP comment - fixes #469 2018-10-28 20:17:01 +01:00
ymdatta
6341d1382e Add support for optparse's 'float' and 'complex' types.
This helps normalize_from_setuptools, to handle all
optparse's standard-option-types.

Fixes #452
2018-10-28 17:21:39 +05:30