Commit graph

337 commits

Author SHA1 Message Date
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
Ian Stapleton Cordasco
e09a22a416
Refactor to support the per-file-ignores
Most of the problems with our logic were due to not having the same
logic as our exclude parameter. This refactors that out into a separate
function so we can confidently achieve that.
2018-10-27 08:01:14 -05:00
Ian Stapleton Cordasco
f2776107db
Add support for per-file ignores in config
This adds support for rules that ignore violation codes on a per-file
basis. This takes a similar functional approach to
https://github.com/snoack/flake8-per-file-ignores which allows for glob
patterns like the `--exclude` option.

Closes #156
2018-10-25 09:45:03 -05:00
Anthony Sottile
b6bd3a8ddd Release v3.6.0 2018-10-23 20:42:45 -07:00
Anthony Sottile
42590a68a5 Revert "Merge branch 'revert-63b91c95' into 'master'"
This reverts commit ba2fb9c53a, reversing
changes made to 63b91c95ea.
2018-10-23 15:06:49 -07:00
Anthony Sottile
fb1f257128 Revert "Merge branch 'match_newlines_py3' into 'master'"
This reverts merge request !253
2018-10-23 21:53:19 +00:00
Anthony Sottile
63b91c95ea Merge branch 'match_newlines_py3' into 'master'
Fix inconsistent newlines read from a file in python3

Closes #457

See merge request pycqa/flake8!253
2018-10-23 21:44:22 +00:00
Jintao Zhang
5188a146c2 Fix collections ABCs deprecation warning.
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
2018-10-23 11:52:48 +08:00
Anthony Sottile
a42bfdf6d2 Fix inconsistent newlines read from a file in python3 2018-10-22 17:10:18 -07:00
Ian Stapleton Cordasco
c58a4662d8
Use black to reformat Flake8
Instead of just using Flake8 and pylint to keep Flake8 clean, let's also
use black to make it less manual for clean-up.
2018-10-20 12:37:14 -05:00
Ian Stapleton Cordasco
a2b7a7e4c5 Merge branch 'fix-doc-for-isolated' into 'master'
Fix docs for --isolated flag

See merge request pycqa/flake8!247
2018-10-20 12:10:23 +00:00
Anthony Sottile
6a610cb5d6 Defer setuptools import to save ~60ms on startup
(I ran this 5 times and picked a median result)

### before

```console
$ time flake8 --help > /dev/null

real    0m0.221s
user    0m0.199s
sys     0m0.020s
```

### after

```console
$ time flake8 --help > /dev/null

real    0m0.169s
user    0m0.144s
sys     0m0.020s
```
2018-10-14 21:50:24 -07:00
Sargun Vohra
21531962bf Fix docs for --isolated flag 2018-09-09 19:22:58 -07:00
Anthony Sottile
e73055432c Only skip a file if # flake8: noqa is on a line by itself 2018-07-01 08:40:26 -07:00
Ian Stapleton Cordasco
eb6228b660 Merge branch 'pyflakes_new_codes' into 'master'
Update to pyflakes 2.0.0

Closes #422

See merge request pycqa/flake8!239
2018-06-29 01:52:34 +00:00
Ian Stapleton Cordasco
44657876a8 Merge branch 'docs-py3' into 'master'
Update documentation links to latest Python 3 documentation

See merge request pycqa/flake8!242
2018-06-29 01:46:26 +00:00
Anthony Sottile
6a725a0a52 Fix "invalid escape sequence" when running with -Werror
```
$ python3.7 -Werror
Python 3.7.0rc1 (default, Jun 16 2018, 03:32:08) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '# noqa(?:: (?P<codes>([A-Z][0-9]+(?:[,\s]+)?)+))?'
  File "<stdin>", line 1
SyntaxError: invalid escape sequence \s
```
2018-06-18 06:25:07 +00:00
Jon Dufresne
3d394b1ab0 Update documentation links to latest Python 3 documentation
The URL https://docs.python.org/3/ is actively maintained and updated.
2018-06-10 11:23:28 -07:00
Miro Hrončok
527af5c214 Update to pyflakes 2.0.0
- Add new pyflakes codes
- Bump the required versions
- Fixes https://gitlab.com/pycqa/flake8/issues/422
2018-06-05 16:17:29 +02:00
Ian Stapleton Cordasco
d6eea404a8 Merge branch 'spelling' into 'master'
Spelling and grammar fixes

See merge request pycqa/flake8!232
2018-05-20 15:40:41 +00:00
Ville Skyttä
e520c2d936 Implement --extend-ignore
Refs #365
2018-05-16 08:50:26 +02:00
Ville Skyttä
9f74e7a4ca Spelling and grammar fixes 2018-05-13 22:19:50 +02:00
Ian Stapleton Cordasco
5221014947 Merge branch '405-nonexisting-files' into 'master'
Resolve "flake8 does not generate error when given a non-existent file on the command line"

Closes #405

See merge request pycqa/flake8!227
2018-04-15 23:33:40 +00:00
Craig Silverstein
a5573fc864 Move all uses of pool inside run_parallel().
This includes creating the pool, tearing it down under normal use, and
tearing it down in case of exception.

Doing this makes it harder to leak processes, as for instance was
happening in #410.

Fixes #410
2018-03-02 20:49:31 -08:00