Commit graph

1561 commits

Author SHA1 Message Date
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
Ian Stapleton Cordasco
49f0fbcf1e
Respect a formatter's newline setting when printing
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.
2017-12-31 18:50:59 -06:00
Ian Stapleton Cordasco
f0d63a5a99 Merge branch 'handle-broken-plugins-nicer' into 'master'
Implement better UX around broken plugins

See merge request pycqa/flake8!221
2018-01-01 00:50:52 +00:00
Ian Stapleton Cordasco
8ac129213d Merge branch 'master' into 'master'
Trim Python 3.3 from Travis CI config

See merge request pycqa/flake8!220
2018-01-01 00:50:05 +00:00
Ian Stapleton Cordasco
3043115551
Implement better UX around broken plugins
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.
2017-12-31 18:46:59 -06:00
Ian Stapleton Cordasco
5c78396e4e
Trim Python 3.3 from Travis CI config 2017-12-31 17:46:54 -06:00
Tomer Chachamu
9d2ff76d31 fix for flake8-isort 2017-11-27 11:10:41 +00:00
Ian Stapleton Cordasco
3530870679 Merge branch 'local-plugin-paths' into 'master'
Add paths option in local-plugins config file.

Closes #379

See merge request pycqa/flake8!211
2017-11-26 18:40:04 +00:00
Ian Stapleton Cordasco
dc7012cadc Merge branch 'with-statement' into 'master'
Drop from __future__ import with_statement from docs

See merge request pycqa/flake8!216
2017-11-26 18:38:06 +00:00
Ian Stapleton Cordasco
55caffdbe9
Stop being silly
We don't support Python 2.6 so we don't need to support this backwards
compatibility
2017-11-26 12:32:29 -06:00
Jon Dufresne
96841cd41d Drop from __future__ import with_statement from docs
All versions of Python that flake8 supports (2.7, 3.4+) have full
support for the with statement. There is no need to add the import.

Slightly simplifies the example be removing unnecessary boilerplate.
2017-11-26 09:58:55 -08:00
Ian Stapleton Cordasco
696063ed1a
Make our flake8 output more colorful 2017-11-26 11:25:11 -06:00
Ian Stapleton Cordasco
c60546e896
Add pep8-naming to flake8 linting 2017-11-26 11:25:09 -06:00
Ian Stapleton Cordasco
a3a2539a23
Fix-up new I202 violations 2017-11-26 11:25:06 -06:00
Ian Stapleton Cordasco
9bea7576ac Merge branch 'cache' into 'master'
Enable pip cache in Travis CI

See merge request pycqa/flake8!213
2017-11-25 19:47:37 +00:00
Jon Dufresne
593a4b8edd Enable pip cache in Travis CI
Can speed up builds and reduce load on PyPI servers.

For more information, see:

https://docs.travis-ci.com/user/caching/#pip-cache
2017-11-05 14:07:33 -08:00
Ian Stapleton Cordasco
1ecf97005a Merge branch 'update-pycodestyle' into 'master'
Update minimum pycodestyle version to 2.3.0

Closes #381

See merge request pycqa/flake8!212
2017-10-28 11:32:56 +00:00
Jack Mustacato
4fcbcccf38 Update minumum pycodestyle version to 2.3.0 2017-10-27 15:05:23 -04:00
Carl Meyer
dd1e9d1cb7 Use default comma-separated regex for local-plugin paths. 2017-10-25 08:57:46 -07:00
Carl Meyer
423980164b Add paths option in local-plugins config file. 2017-10-24 19:58:18 -07:00
Ian Stapleton Cordasco
678eb1d2f6 Merge branch 'wheel-license' into 'master'
Include license file in the generated wheel package

See merge request pycqa/flake8!210
2017-10-24 22:05:29 +00:00
Jon Dufresne
f6765f591f Include license file in the generated wheel package
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
2017-10-23 06:33:46 -07:00
Ian Stapleton Cordasco
8acf55e0f8
Prepare for v3.5.0 release on 2017-10-23 2017-10-21 07:25:12 -05:00
Ian Stapleton Cordasco
4d0f313122 Merge branch 'fix_encoding_test' into 'master'
Fix failing encoding test on appveyor

See merge request pycqa/flake8!209
2017-10-20 19:00:37 +00:00
Anthony Sottile
fdcee0259d Fix failing encoding test on appveyor 2017-10-19 08:33:55 -07:00
Ian Stapleton Cordasco
7146aff813 Merge branch 'catch_decode_error' into 'master'
Catch UnicodeDecodeError while parsing config files

See merge request pycqa/flake8!208
2017-10-19 12:27:40 +00:00
Anthony Sottile
bbe8d6d6c6 Catch UnicodeDecodeError while parsing config files 2017-10-09 09:52:37 -07:00
Ian Stapleton Cordasco
2e12a2024b Merge branch 'local-plugins-updates' into 'master'
Local plugins updates

See merge request !207
2017-08-12 13:33:22 +00:00
Ian Stapleton Cordasco
c2218e4c9f
Document using local plugins 2017-08-12 08:30:30 -05:00
Ian Stapleton Cordasco
222f0a8115
Allow our local plugin parsing to accept commas
By slightly modifying our utility function to parse comma separated
lists we can parse local plugins similar to other configuration options.
2017-08-09 19:35:01 -05:00
Ian Stapleton Cordasco
a2c7051c9e
Update release notes to include local plugins 2017-08-08 08:57:22 -05:00
Ian Stapleton Cordasco
156f90369f
Update our plugin registration for debugging
This allows us to report whether or not a plugin is local when users
provide `flake8 --bug-report` output.
2017-08-08 08:54:40 -05:00
Ian Stapleton Cordasco
d5dfd1180d Merge branch 'issue/362' into 'master'
Lint only *.py files with --diff option

Closes #362

See merge request !206
2017-08-08 12:40:27 +00:00
Ian Stapleton Cordasco
da20f04024 Merge branch 'fix-finding-local-config' into 'master'
Fix finding of local config files.

See merge request !204
2017-08-08 11:09:31 +00:00
Josef Skladanka
bf25fef7eb Lint only *.py files with --diff option
When using the `--diff` option flake8 only lints *.py files or files
defined by the `--filename` filter.

Fixes #362
2017-08-08 06:27:54 +02:00
Carl Meyer
54a8a551b3 Fix finding of local config files. 2017-08-07 17:57:25 -07:00
Ian Stapleton Cordasco
cead98598a Merge branch 'simplify-app-tests' into 'master'
Simplify application tests; remove unneeded mocking

See merge request !205
2017-08-07 23:56:23 +00:00
Carl Meyer
ca3c4d2545 Simplify application tests; remove unneeded mocking 2017-08-07 13:56:54 -07:00
Ian Stapleton Cordasco
3169b6072b Merge branch 'local-plugins' into 'master'
Add support for local (in-repo, non-setuptools) plugins.

Closes #357

See merge request !197
2017-08-07 11:19:30 +00:00