69 Commits

Author SHA1 Message Date
e94fb10940 require python>=3.7 2022-08-05 19:51:08 -04:00
af1668bf04 extend black formatting to tests as well 2021-04-18 09:23:48 -07:00
358ae85120 automatic: pyupgrade --py36-plus 2021-03-30 17:37:13 -07:00
8ba8bc9fed remove unused noqa comments 2021-03-29 19:18:34 -07:00
3397a94a10 Move setup metadata to setup.cfg 2019-07-08 20:14:44 +00:00
c85b282b05 Fix performance regression with per-file-ignores
With a large number of errors, filenames, and per-file-ignores the style guide
selection would take a significant portion of execution time
(python3 70% / python2 99.9%).

Caching the styleguide lookup by filename eliminates this bottleneck.
2019-01-31 09:23:02 -08:00
30e3545722 Upgrade entrypoints and sync with setup.cfg 2019-01-29 19:15:09 -08:00
50e7cc71b9 Latest pycodestyle 2019-01-29 08:58:10 -08:00
3127d213f6 Some lint / mypy fixes 2019-01-24 02:15:25 -08:00
03ea38df16 WIP: use latest pyflakes 2019-01-19 12:02:44 -08:00
64cc5b3d07 Remove tests_require / setup_requires since we do not use setup.py test 2019-01-03 17:25:39 -08:00
ff15ba0865 Replace setuptools with entrypoints 2018-11-05 11:08:37 -08:00
b6bd3a8ddd Release v3.6.0 2018-10-23 20:42:45 -07:00
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
9f74e7a4ca Spelling and grammar fixes 2018-05-13 22:19:50 +02:00
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
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
68782675b7 Add new pycodestyle check hooks.
Add new pycodestyle check hooks for breaks around binary ops.
2018-04-15 14:02:49 +00:00
85c503de32 Remove broken hook.
Remove broken hook to pycodestyle.break_around_binary_operator.
2018-04-15 10:52:07 +00:00
0273ca561f Update pycodestyle dependency version. 2018-04-15 10:51:18 +00:00
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
4fcbcccf38 Update minumum pycodestyle version to 2.3.0 2017-10-27 15:05:23 -04:00
b714bdff0b Update pyflakes range and include doc links 2017-08-06 14:16:12 -05:00
ee43559348 Add new pycodestyle checks
Closes #361
2017-08-05 07:27:20 -05:00
69eaa28da2 Update name across the project post-marriage 2017-07-27 18:47:38 -05:00
a7068ad374 Use extras_require instead of conditional code.
Use of extras_require produces correct package metadata for flake8
regardless of the version of Python the package is built with.
The conditional code produces different metadata for Python 3 and 2.
The latest versions of flake8 were released with Python 3 and metadata
did not contain two dependencies necessary for use with Python 2.7.

See https://gitlab.com/pycqa/flake8/issues/341 for details.

Account for users of setuptools<18 that still need the conditional code.
2017-07-10 18:20:49 -07:00
b6c0cce3e6 Add lower bound on setuptools
Partial #320
2017-05-12 20:37:16 -05:00
8ff30e2676 Allow newer pycodestyle 2017-02-02 12:22:22 -08:00
7824162ee6 Add "Development Status" classifier to setup.py 2017-01-26 18:08:43 -08:00
499bc72c35 Update dependencies for Python 3.6 2017-01-23 06:44:20 -06:00
bc840e2403 Add AST support for Python 3.6
Upgrade version constraints on PyFlakes to only the versions that handle
Python 3.6

Closes #290
2017-01-15 11:26:07 -06:00
8a3869e965 Require mock 2.0.0, because unit tests are failing on older one 2016-11-22 22:43:54 +01:00
e727bbb38b Release 3.2.0 2016-11-14 16:38:27 -06:00
662d787285 Revert "Update release machinery to include manpages"
This reverts commit f6f01b469ccabdb78c95399d5cb50d94f69bdef9.
2016-11-14 09:49:03 -06:00
f6f01b469c Update release machinery to include manpages 2016-11-14 09:48:48 -06:00
ca4f631fb2 Merge branch 'patch-1' of github.com/alex/flake8 2016-11-09 17:09:32 -06:00
901869731b Fixed E305: expected 2 blank lines after class or function definition 2016-11-08 20:13:53 +01:00
a56f665110 Permit pycodestyle 2.1.x to be used 2016-11-05 11:24:38 -04:00
4bd4d4ce9c Bumped maximum pyflakes version to allow usage of pyflakes 1.3 2016-09-02 12:54:21 +00:00
e51fc5458b Fix handling of logical lines with noqa
When attempting to centralize all inline NoQA handling in the StyleGuide
we inadvertently broke plugins relying on it in combination with checker
state. For example, the check for E402 relies both on NoQA and the state
to determine if it has seen a non-import line. Placing NoQA on the sole
line that is not an import is more elegant than placing it on each of
the following import lines.

Closes #186
2016-07-26 19:45:05 -05:00
222292c4b2 Handle repeated --quiet options again
Fundamentally on Flake8 2.x using -q altered the format of the errors
(and the behaviour a little) so it makes the most sense to implement
this logic with formatters rather than messy logic spread throughout
the project.

The FilenameOnly formatter will keep track of filenames already reported
and only print the name once while Nothing will print nothing.

Closes #180
2016-07-25 19:38:19 -05:00
cde783d135 Clean up setup.py a bit 2016-06-30 16:03:02 -05:00
790549fd25 Open our README appropriately
Systems without a LOCALE present will not be able to read our file
appropriately on Python 3. This was causing our Python 3 CI jobs on
GitLab to fail.
2016-06-26 07:13:16 -05:00
04413f8338 Add the long description back to setup.py 2016-06-25 12:27:14 -05:00
5d1150cc27 Update the packaging so wheels work 2016-06-25 11:20:28 -05:00
1a2c68f5da Move flake8 into src
This is an emerging best practice and there is little reason to not
follow it
2016-06-25 10:12:13 -05:00
6ac4d16522 Switch to pycodestyle and start constraining versions again 2016-06-20 20:20:48 -05:00
9a9bcdfb52 Add setuptools integration
This proved simpler because I realized something important: Most of the
code that the old integration was using was in fact doing nothing of
value. Since we can't meaningfully allow users to use command-line
options as parameters to `python setup.py flake8`, we just remove the
work that we do to set up those attributes and parse them.
2016-06-16 10:59:16 -05:00
3af48abac6 Remove CHANGES.rst 2016-06-14 20:48:44 -05:00
9c47fe3c08 Convert flake8.api to a submodule 2016-06-11 16:43:41 -05:00