Commit graph

401 commits

Author SHA1 Message Date
Ian Cordasco
df2fa18a08
Fix project config file discovery
Flake8 3.0 was stopping once it found the current directory but the
historical behaviour (that we didn't intend to break) searched past
that (towards root) until it found one of the project/local config
file names that could be read.

Closes #181
2016-07-26 09:37:32 -05:00
Martin Domke
c782060a06 Add --tee option to split report output stream.
The --tee option allows the linter report to be written to stdout, even
though it is being redirected to a file with the --output-file option.
This is useful if I want to store the report in a separate file for later
analysis but also be able to print the output on screen (e.g when running
in a CI environment).
2016-07-26 15:57:13 +02:00
Ian Cordasco
88d9213962
Add release notes for 3.0.1 2016-07-25 19:43:27 -05:00
Ian Cordasco
232ef0ed31 Merge branch 'file-plugin-docs' into 'master'
Update documentation to separate parameter types

This is the documentation update separated from !80 which should be pretty uncontroversial. I already applied the comment on the documentation here.

See merge request !83
2016-07-25 18:11:28 +00:00
Ian Cordasco
299e200cb9
Handle multiline strings with '# noqa'
In Flake8 2.x we allowed people to use # noqa at the end of a multiline
string to ignore errors inside the string (e.g., E501). Being blissfully
ignorant of this, I never accounted for it in Flake8 3. This fixes the
oversight and allows multiline statements to have the # noqa at the end.

Closes #177
2016-07-25 11:00:18 -05:00
Fabian Neundorf
3191c44cfc Update documentation to separate parameter types
It updates the documentation to separate which parameters are static and
which are changed on each line. Using the latter parameters on plugins which
are only run once per file isn't very sensible.
2016-07-25 15:45:44 +02:00
Ian Cordasco
ff0bf5f0f9
Update release notes and version string for 3.0 2016-07-24 20:11:48 -05:00
Fabian Neundorf
9cf8603e94 Add support for tokens of a complete file
The `tokens` property of the `FileProcessor` class only contains tokens of the
current line but not all tokens. So if a plugin which is only executed once
per file, that property is useless. To make the tokens also available to
plugins it is now be able to supply all the tokens of a file.

It also updates the documentation to separate which parameters are static and
which are changed on each line. Using the latter parameters on plugins which
are only run once per file isn't very sensible.
2016-07-22 00:28:23 +02:00
Fabian Neundorf
965d6f9509 Fix typo in documentation using indect
The documentation for the `FileProcessor` class used `indect_char` while the
class itself uses the more sensible name `indent_char`. This updates both the
docstring as well as the documentation.
2016-07-21 13:59:07 +02:00
Ian Cordasco
8a2e7ff908
Trim trailing whitespace in compat docs 2016-07-20 08:17:33 -05:00
Ian Cordasco
370912988f
Document flake8-polyfill in compatibility section
Yesterday we released the flake8-polyfill package to help with Flake8
compatibility issues. This adds documentation to Flake8 to help people
use that and to guide them towards it.
2016-07-20 08:12:45 -05:00
Ian Cordasco
ec678de427
Document Legacy API 2016-07-14 08:13:10 -05:00
Ian Cordasco
469da96001
Add new Flake8 classifier to Trove list 2016-07-09 16:16:07 -05:00
Fabian Neundorf
fabb13c5d1 Use option name provided by the parser
When calling `add_option` it returns an `Option` object which can return the
primary name of the option via `get_opt_name`. This should be used primarily
in the cross compatible implementation so that the order of parameters does
not matter.
2016-07-09 21:27:19 +02:00
Ian Cordasco
5b8a875965
Add 3.0.0b2 release notes 2016-06-28 20:47:44 -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
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
00575214db
Add missing release notes 2016-06-25 12:29:58 -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
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
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
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
590e15cb4c
Trim trailing whitespace in docs 2016-06-20 13:42:48 -05:00
Ian Cordasco
3e8bbc50dc
Add documentation ... for writing documentation 2016-06-20 09:26:01 -05:00
Ian Cordasco
41277ff965
Use |Flake8| consistently throughout documentation 2016-06-20 08:13:50 -05:00
Ian Cordasco
57ac6ab699
Add |Flake8| substitution to the epilog
The rst_epilog config value in Sphinx allows you to maintain a global
list of replaces or includes that are appended to the text of each
document in your documentation. This allows us to use |Flake8| everywhere
without redefining the replace in every document.
2016-06-20 08:04:33 -05:00
Ian Cordasco
16f58005bf
Add --benchmark option documentation 2016-06-19 20:41:19 -05:00
Cea Stapleton
330fdb5b56 Grammar and clarity improvements. 2016-06-19 14:06:26 -05:00
Ian Cordasco
1de71fbe89
Set a default value for --select
This allows us to add --append-to-select and --append-to-ignore at a
later date that will work as expected and in a consistent manner.
2016-06-16 08:27:28 -05:00
Ian Cordasco
396f69ba42
Merge branch 'patch-1' of pinguin999/flake8 2016-06-15 19:30:08 -05:00
Ian Cordasco
0a6ecad806
Merge branch 'use-pycodestyle' from IanLee1521
I've merged this into a local branch which I'll then merge into master

Conflicts:
      setup.py
2016-06-15 12:10:05 -05:00
Ian Cordasco
b1f039a476
Add information about new --verbose behaviour 2016-06-15 09:20:26 -05:00
Ian Cordasco
25502f6ade
Add note about # noqa: <errors> 2016-06-15 07:48:46 -05:00
Ian Cordasco
d425c246d0 Merge branch '405-ImportStarUsage' into 'master'
pyflakes ImportStarUsage => flake8 405 patch



See merge request !56
2016-06-15 11:32:04 +00:00
Ian Cordasco
29419b0ac3
Start a changelog entry for 3.0.0 2016-06-14 20:48:04 -05:00