Commit graph

2506 commits

Author SHA1 Message Date
Anthony Sottile
894c4ac9ee Merge branch 'setup_py_test' into 'master'
Remove tests_require / setup_requires since we do not use setup.py test

See merge request pycqa/flake8!277
2019-01-04 04:25:45 +00:00
Anthony Sottile
64cc5b3d07 Remove tests_require / setup_requires since we do not use setup.py test 2019-01-03 17:25:39 -08:00
Anthony Sottile
8dc2885d94 Fix typo 2018-12-31 22:26:21 -08:00
Anthony Sottile
a153244191 Merge branch 'pyflakes_api_better' into 'master'
Call pyflakes api better

See merge request pycqa/flake8!276
2019-01-01 03:18:42 +00:00
Anthony Sottile
22b00100ab Call pyflakes api better 2018-12-31 19:14:02 -08:00
Ian Stapleton Cordasco
7f50c3acc4 Merge branch 'remove_unused_broken_flake8_listen' into 'master'
Remove unused and broken flake8.listen plugin type

Closes #480

See merge request pycqa/flake8!274
2018-12-28 15:39:49 +00: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
Anthony Sottile
d3d1b19aec Merge branch 'noqa_without_space_470' into 'master'
Accept Noqa without space

Closes #470

See merge request pycqa/flake8!273
2018-12-27 16:54:47 +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
Tomer Keren
8c9c462154 Add tests for noqa without a space 2018-12-27 18:14:20 +02:00
Anthony Sottile
c645a6761d Merge branch 'patch-1' into 'master'
Recommend registering plugin options using `add_options` and `parse_options`...

See merge request pycqa/flake8!272
2018-12-16 17:34:28 +00:00
Alexander Schlarb
092427e7dd Recommend registering plugin options using add_options and parse_options rather then register_options and provide_options since these are actually called. 2018-12-16 14:11:17 +00: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
Anthony Sottile
9a9237a338 Merge branch 'old-py' into 'master'
Remove workarounds for older, unsupported Pythons

See merge request pycqa/flake8!271
2018-12-05 17:47:14 +00:00
Jon Dufresne
3216c7b362 Remove workarounds for older, unsupported Pythons 2018-12-05 06:34:55 -08:00
Ian Stapleton Cordasco
93ad9617b0 Merge branch 'remove_unused_verify_requiremetns' into 'master'
Remove unused verify_requirements argument

See merge request pycqa/flake8!267
2018-11-22 12:29:58 +00:00
Ian Stapleton Cordasco
838b508848 Merge branch 'pre_commit_config' into 'master'
Add https://pre-commit.com metadata

See merge request pycqa/flake8!268
2018-11-22 12:29:32 +00:00
Anthony Sottile
ef5ef0d9bf Add https://pre-commit.com metadata 2018-11-21 13:40:48 -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
Anthony Sottile
cd75e4e2b2 Merge branch 'grammar' into 'master'
Grammar fixes

See merge request pycqa/flake8!266
2018-11-11 16:13:22 +00:00
Ville Skyttä
dedb741fad Grammar fixes 2018-11-11 11:14:51 +02:00
ymdatta
3b16130500 test_option:Modify the tests to check support for optparse's types. 2018-11-09 08:39:47 +05:30
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
Anthony Sottile
732a466ee8 Merge branch 'defect/469-improve-inline-noqa-regex-comment-and-documentation' into 'master'
Clearer docs, NOQA_INLINE_REGEXP comment - fixes #469

Closes #469

See merge request pycqa/flake8!262
2018-10-28 20:25:53 +00:00
Jesaja Everling
cafe780514 Clearer docs, NOQA_INLINE_REGEXP comment - fixes #469 2018-10-28 20:17:01 +01:00
ymdatta
ccd9beb26d Added tests for optparse's 'float' and 'complex' types 2018-10-28 22:16:03 +05:30
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
6ae2295bfe
Add versionadded notes for options 2018-10-27 11:58:51 -05:00
Ian Stapleton Cordasco
4773995430 Merge branch 'add-extend-ignore-to-violations-docs' into 'master'
Add documentation for `flake8 --extend-ignore`

See merge request pycqa/flake8!258
2018-10-27 16:56:59 +00:00
Ian Stapleton Cordasco
19148eb5d7
Add documentation for --per-file-ignores 2018-10-27 11:35:07 -05:00
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
1433a008b3
Add tests for the expected behaviour of per-file-ignores
These show that there were some subtle bugs in how we were matching
things and that there are bugs that need to be fixed.
2018-10-27 08:01:14 -05:00
Lars Butler
144b5af7a8 Add documentation for flake8 --extend-ignore
Also highlight the behavioral differences between `flake --ignore` and
`flake --extend-ignore`.
2018-10-26 17:42:00 +02: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
52d88d8ca7 Merge branch 'fixups' into 'master'
Fixups after 3.6.0 release

See merge request pycqa/flake8!256
2018-10-24 04:22:17 +00:00
Anthony Sottile
1f1b86a2d1 Fixups after 3.6.0 release 2018-10-23 20:57:42 -07:00
Anthony Sottile
b6bd3a8ddd Release v3.6.0 2018-10-23 20:42:45 -07:00
Anthony Sottile
0115fedbde Merge branch 'match_newlines_py3_v2' into 'master'
Fix inconsistent newlines read from a file in python3 (try 2)

Closes #457

See merge request pycqa/flake8!255
2018-10-23 22:52:27 +00:00
Anthony Sottile
308a0bdb50 Be explicit about the bytes put into test files 2018-10-23 15:47:18 -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
ba2fb9c53a Merge branch 'revert-63b91c95' into 'master'
Revert "Merge branch 'match_newlines_py3' into 'master'"

See merge request pycqa/flake8!254
2018-10-23 22:01:09 +00: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
Anthony Sottile
f5d6cf907b Merge branch 'master' into 'master'
Fix collections ABCs deprecation warning

See merge request pycqa/flake8!249
2018-10-23 03:59:03 +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