Commit graph

1611 commits

Author SHA1 Message Date
Eric N. Vander Weele
95f26d7fe9 Push down extra config file path normalization into main config handling
Move the path normalization for extra configuration file paths down into
the main `config` module where other path normalization occurs.

This also guarantees that the call to `utils.normalize_paths()` is given
a sequence, instead of a potential `None` value.
2019-07-22 21:29:24 -04:00
Anthony Sottile
f41e87bf37 Merge branch 'pyflake-normalize-path' into 'master'
pyflakes: Change to `normalize_path()` for filename normalization

See merge request pycqa/flake8!327
2019-07-08 17:04:02 +00:00
Eric N. Vander Weele
24e8b8163c pyflakes: Change to normalize_path() for filename normalization
It's unnecessary to call the `normalize_paths()` function because it is
intended for dealing with multiple paths to normalize.  Given that
`normalize_paths()` utilizes `normalize_path()`, just call
`normalize_path()` directly.
2019-07-08 09:58:24 -07:00
Anthony Sottile
d6bf438e44 Merge branch 'fix_linters' into 'master'
fix CI build

See merge request pycqa/flake8!328
2019-07-08 16:14:15 +00:00
Anthony Sottile
7506847c9a fix CI build 2019-07-08 09:07:37 -07:00
Anthony Sottile
076dfeee37 Merge branch 'patch-1' into 'master'
Identify error codes with more than one letter in noqa-flags correctly

Closes #549

See merge request pycqa/flake8!326
2019-06-16 17:17:46 +00:00
Markus Piotrowski
37964dbd84 Update test_violation.py
Added tests to check if long error codes are correctly identified.
2019-06-16 17:02:54 +00:00
Markus Piotrowski
0ac337608b This PR addresses issue #549 (noqa does only work as intended with single letter error codes). A single change in the regex NOQA_INLINE_REGEXP in defaults.py will allow to catch error codes which consist of more than one letter.
This will close #549.
2019-06-16 15:55:37 +00:00
Anthony Sottile
2f8bc64b1e Merge branch 'show_traceback' into 'master'
Show traceback on plugin exception

See merge request pycqa/flake8!317
2019-06-14 18:03:39 +00:00
Anthony Sottile
027ed1c9cc Merge branch 'doc/gitignore' into 'master'
Document global gitignore files for contributors

Closes #155

See merge request pycqa/flake8!323
2019-05-30 13:37:54 +00:00
Mandar Vaze
78a4f4cda4 Document global gitignore files for contributors
Fixes #155
2019-05-30 13:37:54 +00:00
Anthony Sottile
609693bb5c Merge branch 'flake8-typing-imports' into 'master'
Ensure typing imports don't break old patch versions

See merge request pycqa/flake8!322
2019-05-21 05:39:57 +00:00
Anthony Sottile
d81de455b6 Ensure typing imports don't break old patch versions 2019-05-20 22:30:06 -07:00
Anthony Sottile
9b79c40cdb Merge branch 'mypy' into 'master'
mypy now passes

See merge request pycqa/flake8!319
2019-05-21 03:07:47 +00:00
Anthony Sottile
52e4126e78 Merge branch 'asottile-entry-point-docs-fixup' into 'master'
Fix sample entry points in docs

See merge request pycqa/flake8!320
2019-05-21 00:37:35 +00:00
Anthony Sottile
81838de946 Fix sample entry points in docs 2019-05-21 00:24:47 +00:00
Ivan Pozdeev
6813f159d7 Show traceback on plugin exception 2019-05-20 22:44:03 +03:00
Anthony Sottile
fb7e9338cd mypy now passes 2019-05-19 17:31:04 -07:00
Anthony Sottile
b6ba6d4d03 Merge branch 'nosec' into 'master'
whitelist a bandit false positive and improve type annotation

See merge request pycqa/flake8!318
2019-05-19 16:45:05 +00:00
Anthony Sottile
dcd37ec3d4 whitelist a bandit false positive and improve type annotation 2019-05-19 09:39:14 -07:00
Anthony Sottile
89b0bb87d7 Merge branch 'ignore-coverage-files-in-parallel-mode' into 'master'
ignore .coverage files in --parallel-mode

See merge request pycqa/flake8!316
2019-05-02 00:02:38 +00:00
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