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
Avraham Shukron
59218ca323
Report error when non-exiting path is passed to flake8
2018-02-21 18:19:59 +02:00
Ian Stapleton Cordasco
6381d86f00
Merge branch 'formatter-print-observe-newline' into 'master'
...
Respect a formatter's newline setting when printing
See merge request pycqa/flake8!222
2018-01-01 00:57:09 +00:00
Ian Stapleton Cordasco
0c7de6df55
Merge branch 'isort-fix' into 'master'
...
fix for flake8-isort
See merge request pycqa/flake8!215
2018-01-01 00:53:56 +00:00
Ian Stapleton Cordasco
49f0fbcf1e
Respect a formatter's newline setting when printing
...
In working on flake8-json, I noticed that setting newline was only
helpful for writing to an ouput-file but not to standard-out. It makes
sense for this setting to apply to both branches otherwise plugins need
to override the method to get the behaviour they expect.
2017-12-31 18:50:59 -06:00
Ian Stapleton Cordasco
3043115551
Implement better UX around broken plugins
...
This handles most any exception arising from a plugin and provides the
user with a better experience and view of the problem. It also provides
a way to retrieve the information about what exactly failed for
providing bug reports to plugin authors.
2017-12-31 18:46:59 -06:00
Tomer Chachamu
9d2ff76d31
fix for flake8-isort
2017-11-27 11:10:41 +00:00
Ian Stapleton Cordasco
3530870679
Merge branch 'local-plugin-paths' into 'master'
...
Add paths option in local-plugins config file.
Closes #379
See merge request pycqa/flake8!211
2017-11-26 18:40:04 +00:00
Ian Stapleton Cordasco
55caffdbe9
Stop being silly
...
We don't support Python 2.6 so we don't need to support this backwards
compatibility
2017-11-26 12:32:29 -06:00
Ian Stapleton Cordasco
a3a2539a23
Fix-up new I202 violations
2017-11-26 11:25:06 -06:00
Carl Meyer
dd1e9d1cb7
Use default comma-separated regex for local-plugin paths.
2017-10-25 08:57:46 -07:00
Carl Meyer
423980164b
Add paths option in local-plugins config file.
2017-10-24 19:58:18 -07:00
Ian Stapleton Cordasco
8acf55e0f8
Prepare for v3.5.0 release on 2017-10-23
2017-10-21 07:25:12 -05:00
Anthony Sottile
bbe8d6d6c6
Catch UnicodeDecodeError while parsing config files
2017-10-09 09:52:37 -07:00
Ian Stapleton Cordasco
222f0a8115
Allow our local plugin parsing to accept commas
...
By slightly modifying our utility function to parse comma separated
lists we can parse local plugins similar to other configuration options.
2017-08-09 19:35:01 -05:00
Ian Stapleton Cordasco
156f90369f
Update our plugin registration for debugging
...
This allows us to report whether or not a plugin is local when users
provide `flake8 --bug-report` output.
2017-08-08 08:54:40 -05:00
Ian Stapleton Cordasco
d5dfd1180d
Merge branch 'issue/362' into 'master'
...
Lint only *.py files with --diff option
Closes #362
See merge request !206
2017-08-08 12:40:27 +00:00
Josef Skladanka
bf25fef7eb
Lint only *.py files with --diff option
...
When using the `--diff` option flake8 only lints *.py files or files
defined by the `--filename` filter.
Fixes #362
2017-08-08 06:27:54 +02:00
Carl Meyer
54a8a551b3
Fix finding of local config files.
2017-08-07 17:57:25 -07:00
Ian Stapleton Cordasco
3169b6072b
Merge branch 'local-plugins' into 'master'
...
Add support for local (in-repo, non-setuptools) plugins.
Closes #357
See merge request !197
2017-08-07 11:19:30 +00:00
Ian Stapleton Cordasco
1f0e6a6ffa
Merge branch 'hook_conf' into 'master'
...
Tell user how to configure VCS hooks
See merge request !198
2017-08-07 10:56:37 +00:00
Peter Cock
12660a6fb7
Remove trailing new line; insert raises
2017-08-07 11:39:18 +01:00
Carl Meyer
18c0b14b5c
Append [local] to version of local plugins.
2017-08-06 20:57:04 -07:00
Carl Meyer
2cadc060d3
Don't load local plugins from user config.
2017-08-06 20:47:02 -07:00
Carl Meyer
f82aab5820
Minor argument changes.
2017-08-06 20:46:46 -07:00
Ian Stapleton Cordasco
778ddf3ce1
Prepare master branch for development of 3.5.0
2017-08-06 14:02:58 -05:00
Peter Cock
9457d84cfd
Tell user how to configure VCS hooks.
...
Also fills out the hg install hook docstring.
This would close GitLab issue #335 .
2017-08-04 11:47:50 +01:00
Carl Meyer
06a5e19769
Handle argv being None.
2017-08-03 11:05:33 -07:00
Carl Meyer
4e58068657
Add support for local (in-repo, non-setuptools) plugins.
...
Closes #357
2017-08-03 00:25:37 -07:00
Ian Stapleton Cordasco
ec996ffd85
Allow spaces in # noqa lists
...
To match our new configuration file format and its allowance for spaces
in the list
Closes #356
2017-07-28 19:31:32 -05:00