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
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
Ian Stapleton Cordasco
30b0e4599a
Merge branch 'extend-ignore' into 'master'
...
Implement --extend-ignore
See merge request pycqa/flake8!233
2018-05-20 14:46:10 +00:00
Ville Skyttä
e8e35ea0ae
Add some extend_ignores into decision engine test cases
2018-05-20 12:04:40 +02:00
Ville Skyttä
e520c2d936
Implement --extend-ignore
...
Refs #365
2018-05-16 08:50:26 +02:00
Ville Skyttä
9f74e7a4ca
Spelling and grammar fixes
2018-05-13 22:19:50 +02:00
Ian Stapleton Cordasco
5221014947
Merge branch '405-nonexisting-files' into 'master'
...
Resolve "flake8 does not generate error when given a non-existent file on the command line"
Closes #405
See merge request pycqa/flake8!227
2018-04-15 23:33:40 +00:00
Ian Stapleton Cordasco
f05c01b3ff
Merge branch 'readthedocs' into 'master'
...
Prefer readthedocs.io instead of readthedocs.org for doc links
See merge request pycqa/flake8!224
2018-04-15 19:35:03 +00:00
Ian Stapleton Cordasco
d0db8497b9
Merge branch 'master' into 'master'
...
Move all uses of `pool` inside `run_parallel()`.
Closes #410
See merge request pycqa/flake8!228
2018-04-15 19:31:31 +00:00
Ian Stapleton Cordasco
730071cdaf
Merge branch 'entry_point_docs_update' into 'master'
...
add common entry points and instruction to docs
See merge request pycqa/flake8!229
2018-04-15 19:26:49 +00:00
Ian Stapleton Cordasco
4057d3d3cc
Merge branch 'pyreq' into 'master'
...
Pass python_requires argument to setuptools
See merge request pycqa/flake8!225
2018-04-15 19:25:50 +00:00
Ian Stapleton Cordasco
aa67b4a908
Merge branch 'newchecks' into 'master'
...
Add hooks to new checks from pycodestyle 2.4.0
See merge request pycqa/flake8!231
2018-04-15 19:25:25 +00:00
Ian Stapleton Cordasco
69b1eb3379
Merge branch 'pycodestyle2.4.0' into 'master'
...
Remove pycodestyle.break_around_binary_operator hook to work with pycodestyle 2.4.0
See merge request pycqa/flake8!230
2018-04-15 19:24:47 +00:00
Jimi Cullen
ef1d5ceefc
Add hooks for new pycodestyle checks.
...
Add hooks for new checks introduced in pycodestyle 2.4.0.
For details of the changes to pycodestyle, see:
https://pycodestyle.readthedocs.io/en/latest/developer.html
2018-04-15 15:31:31 +00:00
Jimi Cullen
e61d9d2466
Add W504 to default ignore list.
2018-04-15 14:17:26 +00:00
Jimi Cullen
68782675b7
Add new pycodestyle check hooks.
...
Add new pycodestyle check hooks for breaks around binary ops.
2018-04-15 14:02:49 +00:00
Jimi Cullen
85c503de32
Remove broken hook.
...
Remove broken hook to pycodestyle.break_around_binary_operator.
2018-04-15 10:52:07 +00:00
Jimi Cullen
0273ca561f
Update pycodestyle dependency version.
2018-04-15 10:51:18 +00:00
Tyler Wince
7635db1ce3
fixed emphasis on last line
2018-03-30 14:53:37 -07:00
Tyler Wince
a7c0fc6463
added language for entry point length
2018-03-30 14:46:14 -07:00
Tyler Wince
8e7658c06d
add common entry points and instruction to docs
2018-03-29 08:09:07 -07:00
Craig Silverstein
c16c0c9041
Do better testing that we actually call run_serial().
2018-03-02 21:01:47 -08:00
Craig Silverstein
a5573fc864
Move all uses of pool inside run_parallel().
...
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
2018-03-02 20:49:31 -08:00
Avraham Shukron
59218ca323
Report error when non-exiting path is passed to flake8
2018-02-21 18:19:59 +02:00
Jon Dufresne
f68e71911b
Pass python_requires argument to setuptools
...
Helps pip decide what version of the library to install.
https://packaging.python.org/tutorials/distributing-packages/#python-requires
> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
2018-01-13 15:41:22 -08:00
Jon Dufresne
c86109a769
Prefer readthedocs.io instead of readthedocs.org for doc links
...
Read the Docs moved hosting to readthedocs.io instead of readthedocs.org. Fix
all links in the project.
For additional details, see:
https://blog.readthedocs.com/securing-subdomains/
> Starting today, Read the Docs will start hosting projects from subdomains on
> the domain readthedocs.io, instead of on readthedocs.org. This change
> addresses some security concerns around site cookies while hosting user
> generated data on the same domain as our dashboard.
2018-01-06 09:09:12 -08:00
Ian Stapleton Cordasco
f834499726
Merge branch 'appveyor-fix' into 'master'
...
Remove py33 from appveyor
See merge request pycqa/flake8!223
2018-01-01 01:08:08 +00:00
Ian Stapleton Cordasco
a1b8b530c5
Remove py33 from appveyor
2017-12-31 19:04:21 -06:00
Ian Stapleton Cordasco
6381d86f00
Merge branch 'formatter-print-observe-newline' into 'master'
...
Respect a formatter's newline setting when printing
See merge request pycqa/flake8!222
2018-01-01 00:57:09 +00:00
Ian Stapleton Cordasco
0c7de6df55
Merge branch 'isort-fix' into 'master'
...
fix for flake8-isort
See merge request pycqa/flake8!215
2018-01-01 00:53:56 +00:00