Commit graph

1625 commits

Author SHA1 Message Date
Eric N. Vander Weele
9283f2f03f utils: Change parse_comma_separated_list() contract
This is the initial incision point to only accept `str` (or `None`) for
parsing out comma/whitespace/regexp separated values.
2019-07-28 10:43:02 -04:00
Eric N. Vander Weele
9fbaf2d2ea utils: Assert desired contract for parse_comma_separated_list()
This is a separate commit so it can be dropped during a rebase or
reverted independently.
2019-07-28 10:39:27 -04:00
Anthony Sottile
862b17d229 Merge branch 'extra-config-normalization' into 'master'
Push down extra config file path normalization into main config handling

See merge request pycqa/flake8!333
2019-07-23 04:29:28 +00:00
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
ace069c9c3 Merge branch 'F633' into 'master'
Fix incorrect error string in documentation

See merge request pycqa/flake8!332
2019-07-19 23:05:31 +00:00
Markus Gerstel
ce26d89cbf
Fix incorrect error string in documentation
In merge request !300 the description of F631 was accidentally used for
F633.
2019-07-19 23:56:05 +01:00
Anthony Sottile
4a52c99cde Merge branch 'fix_appveyor' into 'master'
Fix / improve recently merged patches + CI

See merge request pycqa/flake8!329
2019-07-08 21:57:21 +00:00
Anthony Sottile
d4b0073167 Fix / improve recently merged patches + CI 2019-07-08 14:22:51 -07:00
Anthony Sottile
f00d483ea5 Merge branch 'dev' into 'master'
Move setup metadata to setup.cfg

Closes #487

See merge request pycqa/flake8!325
2019-07-08 20:14:44 +00:00
Surya Teja
3397a94a10 Move setup metadata to setup.cfg 2019-07-08 20:14:44 +00:00
Anthony Sottile
65262dc597 Merge branch 'extend-exclude' into 'master'
support extend-exclude Fixes #535

Closes #535

See merge request pycqa/flake8!315
2019-07-08 20:12:47 +00:00
Thomas Grainger
9ba6677c4a support extend-exclude Fixes #535 2019-07-08 20:12:47 +00:00
Anthony Sottile
0d7247082e Merge branch 'master' into 'master'
Remove filter by filename in utils.filenames_from

Closes #382

See merge request pycqa/flake8!311
2019-07-08 20:11:25 +00:00
Anthony Sottile
aa792d2930 Release 3.7.8 2019-07-08 11:21:04 -07: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
Yevhen Amelin
6fb49b2e80 Remove filter by filename in utils.filenames_from 2019-03-19 09:59:12 +02: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