Commit graph

1003 commits

Author SHA1 Message Date
Ian Cordasco
2d3e277b1e
Handle optional parameters that were never supported
Previously, pycodestyle never introspected the argument names for
classes except to require that ``tree`` be an argument it could pass.
For Flake8 3.0, we lifted that restriction, but old plugins seem to
have cargo-culted their __init__ signature to be

    def __init__(self, tree, builtins=None):

For some yet unknown reason. This was causing an AttributeError. By
updating flake8.utils.parameters_for to return a dictionary that
indicates whether the parameter is required or not, we can side-step
this by simply ignoring the parameter if it has a default value and
we cannot provide it.

Closes #151
2016-06-28 09:36:24 -05:00
Ian Cordasco
ec2e601cbf
Enable plugins automatically during registration
Previously the --select was only ever populated to E,F,W,C and so
plugins would not be reported when not off-by-default. This adds a
tiny shim so that we enable plugins that are not off-by-default and
:x
:x
2016-06-28 07:42:51 -05:00
Ian Cordasco
31c32e3327
Parse hyphenated config names also
Previously Flake8 parsed both

    max-line-length = 110

And

    max_line_length = 110

From the config file without issue. When we updated our logic, I forgot
to test for that and we lost that behaviour temporarily.

Closes #152
2016-06-28 05:47:14 -05:00
Ian Cordasco
95c373cf11
Handle EarlyQuits and KeyboardInterrupts 2016-06-26 20:29:13 -05:00
Ian Cordasco
7fe5b359f7
Add high-level overview of how things fit together
There are now a lot of moving parts in Flake8. It can't help to give new
developers a high-level overview of how they all fit together to make
Flake8. =)
2016-06-26 20:28:24 -05:00
Ian Cordasco
b194717d1a
Search current directory if no paths are specified
This fixes a regression in behaviour from 2.x to 3.

Closes #150
2016-06-26 15:08:58 -05:00
Ian Cordasco
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
Ian Cordasco
b82e0d5176
Add forgotten release note 2016-06-26 06:44:05 -05:00
Ian Cordasco
5a9b7c27ab
Update compatibility docs 2016-06-26 06:41:47 -05:00
Ian Cordasco
6b7855e102
Update the README 2016-06-25 20:09:56 -05:00
Ian Cordasco
2c4eb1377b Merge branch 'add-gitlab-ci' into 'master'
Enable GitLab CI

*Description of changes*

Add a `.gitlab-ci.yml` so we can have multiple services (including Jenkins, once I fix it).

*Related to:*  None

See merge request !65
2016-06-25 21:11:10 +00:00
Ian Cordasco
6bca1c30cc
Fix linters to use src/flake8 2016-06-25 16:07:28 -05:00
Ian Cordasco
951bbe337f
Add python*-dev packages 2016-06-25 16:00:45 -05:00
Ian Cordasco
7f3783d109 Merge branch 'prefer-.flake8' into 'master'
Prefer `.flake8` if present for options.

This is a reprise of !63 for 3.0.

See merge request !64
2016-06-25 20:29:15 +00:00
Ian Cordasco
b5d13260eb
Enable GitLab CI 2016-06-25 15:28:31 -05:00
Tom Prince
db9d4ad8b4 Prefer .flake8 if present for options.
If somebody explicitly has a `.flake8` file, presumably they intend to
put flake8 configuration in it, so prefer it to the generic `setup.cfg`
and `tox.ini` from pycodestyle.
2016-06-25 14:22:21 -06:00
Ian Cordasco
00575214db
Add missing release notes 2016-06-25 12:29:58 -05:00
Ian Cordasco
04413f8338
Add the long description back to setup.py 2016-06-25 12:27:14 -05:00
Ian Cordasco
cee691059f
Merge branch 'origin/proposed/3.0' into master 2016-06-25 12:01:02 -05:00
Ian Cordasco
6eb2e3a701
Add more release notes for 3.0.0b1 2016-06-25 11:55:52 -05:00
Ian Cordasco
7340b3e057
Add release note for 2.6.1 2016-06-25 11:40:41 -05:00
Ian Cordasco
9308910893
Bump version for 2.6.1 2016-06-25 11:37:24 -05:00
Ian Cordasco
fe8c59c113 Merge branch 'prefer-.flake8' into 'master'
Prefer `.flake8` if present for options.

If somebody explicitly has a `.flake8` file, presumably they intend to put flake8 configuration in it, so prefer it to the generic `setup.cfg` and `tox.ini` from pycodestyle.


See merge request !63
2016-06-25 16:32:26 +00:00
Ian Cordasco
5d1150cc27
Update the packaging so wheels work 2016-06-25 11:20:28 -05:00
Ian Cordasco
1ec83033e9
Update the copyright in the LICENSE 2016-06-25 10:49:32 -05:00
Ian Cordasco
7b31ecf7d5
Update the MANIFEST.in for sdists
Let's include our documentation, tests, and src code appropriately
2016-06-25 10:48:52 -05:00
Ian Cordasco
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
Ian Cordasco
5c8d767626
Rename dev subdirectory to plugin-development
This should make the contents clearer
2016-06-25 09:51:15 -05:00
Ian Cordasco
14ce512b9a
Add extra information to plugin dev index 2016-06-25 09:49:06 -05:00
Ian Cordasco
87b331c552
Add some notes for users about how to use plugins 2016-06-25 09:45:08 -05:00
Ian Cordasco
c2111656a6
Add descriptions of pycodestyle and mccable 2016-06-24 14:54:48 -05:00
Ian Cordasco
cae943bd44
Add missing - to sub-directories 2016-06-22 19:27:23 -05:00
Ian Cordasco
1de5da8a7f
Add more definitions to glossary 2016-06-22 19:27:10 -05:00
Ian Cordasco
478d5620d8
Correct example register_options method 2016-06-22 19:13:20 -05:00
Ian Cordasco
88d1dd280a
Start a glossary of terms 2016-06-22 14:34:14 -05:00
Ian Cordasco
601696d564
Trim whitespace from cross-compat plugin docs 2016-06-22 10:07:16 -05:00
Ian Cordasco
04bceeceb5
Remove historical files from the repository
The old/ directory was the archive of flake8 2.0. DESIGN.rst was the
place I kept my initial 3.0 notes for design purposes.
2016-06-22 08:42:30 -05:00
Ian Cordasco
6c0d900a38
Write plugin cross-compatibility documentation 2016-06-22 08:40:53 -05:00
Ian Cordasco
9526e061a7
Add more detail about types of releases 2016-06-22 08:10:07 -05:00
Ian Cordasco
60b67f4ef3
Trim trailing whitespace
I need to get better at following my own contrib documentation
2016-06-22 08:05:47 -05:00
Tom Prince
5098ce89e3 Prefer .flake8 if present for options.
If somebody explicitly has a `.flake8` file, presumably they intend to
put flake8 configuration in it, so prefer it to the generic `setup.cfg`
and `tox.ini` from pycodestyle.
2016-06-21 08:57:52 -06:00
Ian Cordasco
9fe82d7be0
Update version string to beta
Add a version info tuple for plugins to use
2016-06-21 07:37:08 -05:00
Ian Cordasco
f3cd7ee6fb
Update FAQ to be a bit clearer 2016-06-21 07:36:40 -05:00
Ian Cordasco
a4c1edb03e
Add FAQ 2016-06-20 20:54:31 -05:00
Ian Cordasco
b67d1d633e
Add documentation about release versioning and process 2016-06-20 20:53:47 -05:00
Ian Cordasco
6ac4d16522
Switch to pycodestyle and start constraining versions again 2016-06-20 20:20:48 -05:00
Ian Cordasco
ba5bf0c57a
Add missing docstring to Application#report_benchmarks 2016-06-20 13:49:17 -05:00
Ian Cordasco
590e15cb4c
Trim trailing whitespace in docs 2016-06-20 13:42:48 -05:00
Ian Cordasco
3cbad557ea
Remove mypy from list of tox environments 2016-06-20 13:29:53 -05:00
Ian Cordasco
3e8bbc50dc
Add documentation ... for writing documentation 2016-06-20 09:26:01 -05:00