Commit graph

1477 commits

Author SHA1 Message Date
Ville Skyttä
dedb741fad Grammar fixes 2018-11-11 11:14:51 +02: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
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
Anthony Sottile
a42bfdf6d2 Fix inconsistent newlines read from a file in python3 2018-10-22 17:10:18 -07:00
Ian Stapleton Cordasco
7801a17adc Merge branch 'use-black' into 'master'
Use black to reformat Flake8

See merge request pycqa/flake8!251
2018-10-20 23:08:17 +00:00
Ian Stapleton Cordasco
56b86ba9fe
Fix up test files for W504 2018-10-20 12:37:32 -05:00
Ian Stapleton Cordasco
c58a4662d8
Use black to reformat Flake8
Instead of just using Flake8 and pylint to keep Flake8 clean, let's also
use black to make it less manual for clean-up.
2018-10-20 12:37:14 -05:00
Ian Stapleton Cordasco
a2b7a7e4c5 Merge branch 'fix-doc-for-isolated' into 'master'
Fix docs for --isolated flag

See merge request pycqa/flake8!247
2018-10-20 12:10:23 +00:00
Ian Stapleton Cordasco
e2ad8aa186 Merge branch 'startup_perf' into 'master'
Defer setuptools import to save ~60ms on startup

See merge request pycqa/flake8!250
2018-10-20 12:05:44 +00:00
Anthony Sottile
6a610cb5d6 Defer setuptools import to save ~60ms on startup
(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
```
2018-10-14 21:50:24 -07:00
Sargun Vohra
21531962bf Fix docs for --isolated flag 2018-09-09 19:22:58 -07:00
Ian Stapleton Cordasco
9631dac52a Merge branch 'flake8_noqa_line_by_self' into 'master'
Only skip a file if `# flake8: noqa` is on a line by itself

See merge request pycqa/flake8!219
2018-07-01 19:22:30 +00:00
Anthony Sottile
e73055432c Only skip a file if # flake8: noqa is on a line by itself 2018-07-01 08:40:26 -07:00
Ian Stapleton Cordasco
eb6228b660 Merge branch 'pyflakes_new_codes' into 'master'
Update to pyflakes 2.0.0

Closes #422

See merge request pycqa/flake8!239
2018-06-29 01:52:34 +00:00
Ian Stapleton Cordasco
e60e8027c9 Merge branch 'fix-typos' into 'master'
docs: Fix two typos

See merge request pycqa/flake8!236
2018-06-29 01:51:40 +00:00
Ian Stapleton Cordasco
8cbd5510d6 Merge branch 'patch-1' into 'master'
Remove py33 from tox

See merge request pycqa/flake8!240
2018-06-29 01:46:43 +00:00
Ian Stapleton Cordasco
44657876a8 Merge branch 'docs-py3' into 'master'
Update documentation links to latest Python 3 documentation

See merge request pycqa/flake8!242
2018-06-29 01:46:26 +00:00
Ian Stapleton Cordasco
79a7463396 Merge branch '_writing-code-typo-fix' into 'master'
Fix "styl" -> "style" typo in writing code docs

See merge request pycqa/flake8!243
2018-06-29 01:46:06 +00:00
Ian Stapleton Cordasco
a0c7f90d4f Merge branch 'patch-1' into 'master'
Fix "invalid escape sequence" when running with -Werror

See merge request pycqa/flake8!244
2018-06-29 01:45:48 +00:00
Anthony Sottile
6a725a0a52 Fix "invalid escape sequence" when running with -Werror
```
$ 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
```
2018-06-18 06:25:07 +00:00
Valentin Ignatev
76a73eb9a4
Fix "styl" -> "style" typo in writing code docs 2018-06-16 10:19:47 +10:00
Jon Dufresne
3d394b1ab0 Update documentation links to latest Python 3 documentation
The URL https://docs.python.org/3/ is actively maintained and updated.
2018-06-10 11:23:28 -07:00
Miro Hrončok
527af5c214 Update to pyflakes 2.0.0
- Add new pyflakes codes
- Bump the required versions
- Fixes https://gitlab.com/pycqa/flake8/issues/422
2018-06-05 16:17:29 +02:00
Miro Hrončok
2639bc648c Remove py33 from tox
Got:

    flake8 requires Python '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
    but the running Python is 3.3.7
2018-06-05 14:16:47 +00:00
Ian Stapleton Cordasco
33e7eae53a Merge branch 'py37' into 'master'
Add Python 3.7 to tox and GitLab CI

See merge request pycqa/flake8!234
2018-05-21 22:20:52 +00:00
Ian Stapleton Cordasco
63b603c734 Merge branch 'link-fixes' into 'master'
docs: Link fixes and redirect avoidance

Closes #308

See merge request pycqa/flake8!235
2018-05-21 21:19:05 +00:00
GiantsLoveDeathMetal
7c1f075cee Fix two typos
styl -> style
        commnts -> comments
2018-05-21 18:26:32 +01:00
Ville Skyttä
cc5558c926 docs: Link fixes and redirect avoidance 2018-05-21 18:17:59 +02:00
Ville Skyttä
c5e47063ab Add Python 3.7 to tox and GitLab CI 2018-05-20 22:01:25 +02:00
Ian Stapleton Cordasco
d6ab32112f
Fix issue with pep8-naming 2018-05-20 10:46:13 -05:00
Ian Stapleton Cordasco
d6eea404a8 Merge branch 'spelling' into 'master'
Spelling and grammar fixes

See merge request pycqa/flake8!232
2018-05-20 15:40:41 +00:00