| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| |
| | |
Replace setuptools with entrypoints
See merge request pycqa/flake8!264
|
| | | |
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Add support for per-file ignores in config
Closes #156
See merge request pycqa/flake8!259
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/ |
|
| | |
|
| |
|
|
|
| |
This reverts commit ba2fb9c53a8316642249598f599bbf7608d54260, reversing
changes made to 63b91c95ea7795e3c3c90f2d643f685bfff312e9.
|
| |
|
| |
This reverts merge request !253
|
| |\
| |
| |
| |
| |
| |
| | |
Fix inconsistent newlines read from a file in python3
Closes #457
See merge request pycqa/flake8!253
|
| | | |
|
| |/
|
|
| |
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
|
| |
|
|
|
| |
Instead of just using Flake8 and pylint to keep Flake8 clean, let's also
use black to make it less manual for clean-up.
|
| |\
| |
| |
| |
| | |
Fix docs for --isolated flag
See merge request pycqa/flake8!247
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
```
|
| | |
|
| |\
| |
| |
| |
| |
| |
| | |
Update to pyflakes 2.0.0
Closes #422
See merge request pycqa/flake8!239
|
| | |
| |
| |
| |
| |
| | |
- Add new pyflakes codes
- Bump the required versions
- Fixes https://gitlab.com/pycqa/flake8/issues/422
|
| |\ \
| | |
| | |
| | |
| | | |
Update documentation links to latest Python 3 documentation
See merge request pycqa/flake8!242
|
| | |/
| |
| |
| | |
The URL https://docs.python.org/3/ is actively maintained and updated.
|
| |/
|
|
|
|
|
|
|
|
|
| |
```
$ 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
```
|
| |\
| |
| |
| |
| | |
Spelling and grammar fixes
See merge request pycqa/flake8!232
|
| | | |
|
| |/
|
|
| |
Refs #365
|
| |\
| |
| |
| |
| |
| |
| | |
Resolve "flake8 does not generate error when given a non-existent file on the command line"
Closes #405
See merge request pycqa/flake8!227
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| | |
Respect a formatter's newline setting when printing
See merge request pycqa/flake8!222
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | |
| | |
| | | |
fix for flake8-isort
See merge request pycqa/flake8!215
|
| | |/ |
|
| |/
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| |
| |
| | |
Add paths option in local-plugins config file.
Closes #379
See merge request pycqa/flake8!211
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
We don't support Python 2.6 so we don't need to support this backwards
compatibility
|
| |/ |
|
| | |
|
| | |
|
| |
|
|
|
| |
By slightly modifying our utility function to parse comma separated
lists we can parse local plugins similar to other configuration options.
|
| |
|
|
|
| |
This allows us to report whether or not a plugin is local when users
provide `flake8 --bug-report` output.
|
| |\
| |
| |
| |
| |
| |
| | |
Lint only *.py files with --diff option
Closes #362
See merge request !206
|
| | |
| |
| |
| |
| |
| |
| | |
When using the `--diff` option flake8 only lints *.py files or files
defined by the `--filename` filter.
Fixes #362
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Add support for local (in-repo, non-setuptools) plugins.
Closes #357
See merge request !197
|
| | | |
|
| | | |
|
| | | |
|