summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'entrypoints' into 'master'Anthony Sottile2018-11-213-35/+15
|\ | | | | | | | | Replace setuptools with entrypoints See merge request pycqa/flake8!264
| * Replace setuptools with entrypointsAnthony Sottile2018-11-053-35/+15
| |
* | Grammar fixesVille Skyttä2018-11-111-1/+1
|/
* Merge branch 'per-file-style-guide' into 'master'Ian Stapleton Cordasco2018-10-297-19/+210
|\ | | | | | | | | | | | | Add support for per-file ignores in config Closes #156 See merge request pycqa/flake8!259
| * Refactor to support the per-file-ignoresIan Stapleton Cordasco2018-10-273-20/+43
| | | | | | | | | | | | 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.
| * Add support for per-file ignores in configIan Stapleton Cordasco2018-10-256-5/+173
| | | | | | | | | | | | | | | | | | 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
* | Clearer docs, NOQA_INLINE_REGEXP comment - fixes #469Jesaja Everling2018-10-281-1/+1
|/
* Release v3.6.03.6.0Anthony Sottile2018-10-231-1/+1
|
* Revert "Merge branch 'revert-63b91c95' into 'master'"Anthony Sottile2018-10-231-6/+3
| | | | | This reverts commit ba2fb9c53a8316642249598f599bbf7608d54260, reversing changes made to 63b91c95ea7795e3c3c90f2d643f685bfff312e9.
* Revert "Merge branch 'match_newlines_py3' into 'master'"Anthony Sottile2018-10-231-3/+6
| | | This reverts merge request !253
* Merge branch 'match_newlines_py3' into 'master'Anthony Sottile2018-10-231-6/+3
|\ | | | | | | | | | | | | Fix inconsistent newlines read from a file in python3 Closes #457 See merge request pycqa/flake8!253
| * Fix inconsistent newlines read from a file in python3Anthony Sottile2018-10-221-6/+3
| |
* | Fix collections ABCs deprecation warning.Jintao Zhang2018-10-231-2/+7
|/ | | | Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
* Use black to reformat Flake8Ian Stapleton Cordasco2018-10-2025-807/+1035
| | | | | Instead of just using Flake8 and pylint to keep Flake8 clean, let's also use black to make it less manual for clean-up.
* Merge branch 'fix-doc-for-isolated' into 'master'Ian Stapleton Cordasco2018-10-201-1/+1
|\ | | | | | | | | Fix docs for --isolated flag See merge request pycqa/flake8!247
| * Fix docs for --isolated flagSargun Vohra2018-09-091-1/+1
| |
* | Defer setuptools import to save ~60ms on startupAnthony Sottile2018-10-141-2/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | (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 ```
* Only skip a file if `# flake8: noqa` is on a line by itselfAnthony Sottile2018-07-011-4/+12
|
* Merge branch 'pyflakes_new_codes' into 'master'Ian Stapleton Cordasco2018-06-291-0/+2
|\ | | | | | | | | | | | | Update to pyflakes 2.0.0 Closes #422 See merge request pycqa/flake8!239
| * Update to pyflakes 2.0.0Miro Hrončok2018-06-051-0/+2
| | | | | | | | | | | | - Add new pyflakes codes - Bump the required versions - Fixes https://gitlab.com/pycqa/flake8/issues/422
* | Merge branch 'docs-py3' into 'master'Ian Stapleton Cordasco2018-06-291-1/+1
|\ \ | | | | | | | | | | | | Update documentation links to latest Python 3 documentation See merge request pycqa/flake8!242
| * | Update documentation links to latest Python 3 documentationJon Dufresne2018-06-101-1/+1
| |/ | | | | | | The URL https://docs.python.org/3/ is actively maintained and updated.
* | Fix "invalid escape sequence" when running with -WerrorAnthony Sottile2018-06-181-1/+1
|/ | | | | | | | | | | ``` $ 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 ```
* Merge branch 'spelling' into 'master'Ian Stapleton Cordasco2018-05-201-1/+1
|\ | | | | | | | | Spelling and grammar fixes See merge request pycqa/flake8!232
| * Spelling and grammar fixesVille Skyttä2018-05-131-1/+1
| |
* | Implement --extend-ignoreVille Skyttä2018-05-162-1/+13
|/ | | | Refs #365
* Merge branch '405-nonexisting-files' into 'master'Ian Stapleton Cordasco2018-04-151-3/+1
|\ | | | | | | | | | | | | Resolve "flake8 does not generate error when given a non-existent file on the command line" Closes #405 See merge request pycqa/flake8!227
| * Report error when non-exiting path is passed to flake8Avraham Shukron2018-02-211-3/+1
| |
* | Move all uses of `pool` inside `run_parallel()`.Craig Silverstein2018-03-022-32/+30
|/ | | | | | | | | | 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
* Merge branch 'formatter-print-observe-newline' into 'master'Ian Stapleton Cordasco2018-01-011-1/+1
|\ | | | | | | | | Respect a formatter's newline setting when printing See merge request pycqa/flake8!222
| * Respect a formatter's newline setting when printingIan Stapleton Cordasco2017-12-311-1/+1
| | | | | | | | | | | | | | 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.
* | Merge branch 'isort-fix' into 'master'Ian Stapleton Cordasco2018-01-011-0/+18
|\ \ | | | | | | | | | | | | fix for flake8-isort See merge request pycqa/flake8!215
| * | fix for flake8-isortTomer Chachamu2017-11-271-0/+18
| |/
* | Implement better UX around broken pluginsIan Stapleton Cordasco2017-12-313-2/+34
|/ | | | | | | 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.
* Merge branch 'local-plugin-paths' into 'master'Ian Stapleton Cordasco2017-11-262-6/+32
|\ | | | | | | | | | | | | Add paths option in local-plugins config file. Closes #379 See merge request pycqa/flake8!211
| * Use default comma-separated regex for local-plugin paths.Carl Meyer2017-10-251-2/+1
| |
| * Add paths option in local-plugins config file.Carl Meyer2017-10-242-6/+33
| |
* | Stop being sillyIan Stapleton Cordasco2017-11-261-14/+2
| | | | | | | | | | We don't support Python 2.6 so we don't need to support this backwards compatibility
* | Fix-up new I202 violationsIan Stapleton Cordasco2017-11-261-1/+1
|/
* Prepare for v3.5.0 release on 2017-10-233.5.0Ian Stapleton Cordasco2017-10-211-1/+1
|
* Catch UnicodeDecodeError while parsing config filesAnthony Sottile2017-10-091-7/+15
|
* Allow our local plugin parsing to accept commasIan Stapleton Cordasco2017-08-092-7/+16
| | | | | By slightly modifying our utility function to parse comma separated lists we can parse local plugins similar to other configuration options.
* Update our plugin registration for debuggingIan Stapleton Cordasco2017-08-083-9/+20
| | | | | This allows us to report whether or not a plugin is local when users provide `flake8 --bug-report` output.
* Merge branch 'issue/362' into 'master'Ian Stapleton Cordasco2017-08-081-0/+2
|\ | | | | | | | | | | | | Lint only *.py files with --diff option Closes #362 See merge request !206
| * Lint only *.py files with --diff optionJosef Skladanka2017-08-081-0/+2
| | | | | | | | | | | | | | When using the `--diff` option flake8 only lints *.py files or files defined by the `--filename` filter. Fixes #362
* | Fix finding of local config files.Carl Meyer2017-08-071-2/+2
|/
* Merge branch 'local-plugins' into 'master'Ian Stapleton Cordasco2017-08-075-77/+212
|\ | | | | | | | | | | | | Add support for local (in-repo, non-setuptools) plugins. Closes #357 See merge request !197
| * Append [local] to version of local plugins.Carl Meyer2017-08-061-4/+11
| |
| * Don't load local plugins from user config.Carl Meyer2017-08-061-11/+9
| |
| * Minor argument changes.Carl Meyer2017-08-062-2/+2
| |