Ian Cordasco
ec5405d2a8
Merge branch 'keys' into 'master'
...
Prefer iter(dict) instead of dict.keys()
See merge request !186
2017-05-27 22:54:55 +00:00
Jon Dufresne
db4f71288e
Prefer iter(dict) instead of dict.keys()
...
They are equivalent for iterating so remove the additional function
call.
Pattern identified as outdated by Lennart Regebro's PyCon 2017 talk
"Prehistoric Patterns in Python"
https://www.youtube.com/watch?v=V5-JH23Vk0I
2017-05-27 11:54:06 -07:00
Ian Cordasco
d890b8b683
Merge branch 'bug/329' into 'master'
...
Avoid bugs when users accidentally forget a comma
Closes #329
See merge request !185
2017-05-26 01:27:13 +00:00
Ian Cordasco
eec60cf40f
Add release note for bug 329
2017-05-25 20:08:59 -05:00
Ian Cordasco
a42299d008
Support spaces as error/ignore code separators
...
Closes #329
2017-05-25 20:07:48 -05:00
Ian Cordasco
a36d44a70d
Add release notes for bug 330
2017-05-25 20:07:23 -05:00
Ian Cordasco
c1f1ea019e
Merge branch 'contribs' into 'master'
...
Replace CONTRIBUTING.rst with link to webpage
See merge request !183
2017-05-22 21:02:35 +00:00
Ian Cordasco
24129d846c
Merge branch 'bug/330' into 'master'
...
Filter out empty ignore/select codes
Closes #330
See merge request !184
2017-05-21 01:34:34 +00:00
Ian Cordasco
25566468a2
Filter out empty ignore/select codes
...
When we parse out our comma separated lists, we should ignore empty
strings to avoid them breaking users' expectations.
Closes #330
2017-05-20 20:26:27 -05:00
peterjc
ba8f36cd57
Add CONTRIBUTING.rst file refering to webpage.
...
See discusion on GitLab issue #327 where this was suggested
by Ian Cordasco.
2017-05-15 11:09:07 +01:00
peterjc
91dcd3e4c2
Remove CONTRIBUTING.rst symlink
...
The GitLab interface links to the CONTRIBUTING.rst file
(e.g. next to the green submit button under the text box
for filing a new issue), but does not follow the symlink.
Removing the symlink in order to replace it with a file
pointing at the rendered version of the guidelines:
http://flake8.pycqa.org/en/latest/internal/contributing.html
See GitLab issue #327 .
2017-05-15 11:04:19 +01:00
Ian Cordasco
deb4936f5d
Merge branch 'comprehensions' into 'master'
...
Clean up some uses of set, list, and dict
See merge request !181
2017-05-13 22:32:31 +00:00
Jon Dufresne
541bac6a82
Clean up some uses of set, list, and dict
...
* Use set literals instead of set([...])
* Avoid list(sorted(...)) as sorted returns a list
* Replace dict() with dict literal
2017-05-13 07:14:41 -07:00
Ian Cordasco
23b1f37ffd
Merge branch 'bug/320' into 'master'
...
Handle older versions of setuptools than we expect
Closes #320
See merge request !182
2017-05-13 13:07:05 +00:00
Ian Cordasco
c62de6acc3
Make formatting plugin logic easier to test
...
By splitting out the logic to retrieve and return the formatting class
for an application, we can test it more easily and increase our test
coverage of this critical logic.
Refs #320
2017-05-13 08:00:43 -05:00
Ian Cordasco
15ddc3aa2e
Handle missing default formatter
...
In the event that we cannot load our plugins, we shouldn't raise a
cryptic KeyError from our formatter.
Closes #320
2017-05-13 06:52:08 -05:00
Ian Cordasco
b6c0cce3e6
Add lower bound on setuptools
...
Partial #320
2017-05-12 20:37:16 -05:00
Ian Cordasco
32f4b65b6b
Fix docstring violations
2017-05-12 20:34:15 -05:00
Ian Cordasco
0e9bbab551
Merge branch 'patch-1' into 'master'
...
Note about error behaviour depending on Python version, e.g. F812
See merge request !180
2017-05-13 01:14:17 +00:00
Peter Cock
180196f281
Note about error behaviour depending on Python version, e.g. F812
2017-04-26 10:57:33 +00:00
Ian Cordasco
5218099504
Merge branch 'less_greedy_exclude_313' into 'master'
...
Don't apply excludes greedily to subdirs
Closes #313
See merge request !178
2017-04-22 13:37:00 +00:00
Anthony Sottile
0559e0b43c
Don't apply excludes greedily to subdirs
2017-03-16 13:44:33 -07:00
Ian Cordasco
733a4f053b
Merge branch 'bug/306' into 'master'
...
Modify stdin retriever to detect coding pragma
Closes #306
See merge request !177
2017-03-01 12:40:31 +00:00
Ian Cordasco
879d3fc0d7
Modify stdin retriever to detect coding pragma
...
When we read in a file on Python 3, we use the tokenize module to detect
the coding pragma at the top of the file. We then use that to decode the
rest of the file. However, when we were receiving stdin, we would not do
that.
This updates ``stdin_get_value`` in a backwards compatible way to check
for that coding pragma and then fall back to UTF-8 if necessary.
Closes #306
2017-02-20 07:38:28 -06:00
Ian Cordasco
a98ec12bc6
Merge branch 'legacy_api_custom_formatter' into 'master'
...
Make init_report in legacy_api correctly replace all references to old formatter.
See merge request !161
2017-02-08 12:40:43 +00:00
Ian Cordasco
218a0b6980
Release v3.3.0
...
Closes #300
2017-02-06 13:46:51 -06:00
Ian Cordasco
d4d487ea97
Update and finalize v3.3.0 release notes
2017-02-06 13:46:04 -06:00
Ian Cordasco
1a6f8f4169
Merge branch 'allow_newer_pycodestyle' into 'master'
...
Allow newer pycodestyle
See merge request !175
2017-02-03 13:01:05 +00:00
Anthony Sottile
8ff30e2676
Allow newer pycodestyle
2017-02-02 12:22:22 -08:00
Ian Cordasco
1a6b02cb96
Merge branch 'bug/303' into 'master'
...
Do not run git-hook checks when there are no files
Closes #303
See merge request !174
2017-01-27 22:11:10 +00:00
Ian Cordasco
49fcbf468d
Do not run git-hook checks when there are no files
...
Apparently there are some cases where the git hook will not find files
to run the checks against (e.g., when amending a commit message). In
those cases, it's best not to attempt to run any checks and to allow the
hook to exit successfully.
Closes #303
2017-01-27 15:57:23 -06:00
Ian Cordasco
77d887f400
Merge branch 'bug/279' into 'master'
...
Avoid calling rstrip on None
Closes #279
See merge request !173
2017-01-27 21:29:36 +00:00
Ian Cordasco
7ca05a9ca1
Avoid calling rstrip on None
...
When we receive a SyntaxError, it is not guaranteed to have a token that
includes the physical line causing the issue. If it does not, we now
will avoid trying to determine the number of rows and columns that are
actually there and default to what the error tells us.
Closes #279
2017-01-27 15:22:49 -06:00
Ian Cordasco
9145674cf2
Merge branch 'dev-status' into 'master'
...
Add "Development Status" classifier to setup.py
See merge request !172
2017-01-27 11:42:39 +00:00
Jon Dufresne
7824162ee6
Add "Development Status" classifier to setup.py
2017-01-26 18:08:43 -08:00
Ian Cordasco
263f664a73
Merge branch 'bug/300' into 'master'
...
Update dependencies for Python 3.6
See merge request !171
2017-01-23 12:49:45 +00:00
Ian Cordasco
499bc72c35
Update dependencies for Python 3.6
2017-01-23 06:44:20 -06:00
Ian Cordasco
f7c01db9ba
Merge branch 'bug/295' into 'master'
...
Return similarly named, non-submodule modules
Closes #295
See merge request !170
2017-01-22 21:08:33 +00:00
Ian Cordasco
9f8dfd924a
Return similarly named, non-submodule modules
...
In our setuptools integration command, we were attempting to avoid
checking each submodule in the packages list. This was done without
recognizing that two modules may start with the same prefix, e.g.,
- foo
- foo_bar
- foo_biz
In this case, we only ever checked ``foo``. By appending a '.' to the
end of each package name, we avoid this since we only care about
deduplicating submodules, e.g.,
- foo
- foo.sub
- foo.sub.sub
Closes #295
2017-01-22 15:00:48 -06:00
Ian Cordasco
c1f9dc7241
Merge branch 'mr/164' into 'master'
...
Make `flake8 --version` reproducible between invocations
Closes #297
See merge request !169
2017-01-21 20:19:55 +00:00
Ian Cordasco
c9ea51aa45
Add test for reproducible --version strings
...
And add a release note to document the change.
2017-01-21 14:14:59 -06:00
Raphael Das Gupta
f0f2ea7f4e
Force --version to be reproducible
...
By ordering the plugins, --version becomes reproducible so that it
continuously prints the same output (provided the plugins have not
changed).
Closes #297
2017-01-21 13:59:49 -06:00
Ian Cordasco
29d9090954
Change dogfood environment to use Python 2.7
...
This eliminates any ambiguity with respect to which version of Python is
necessary for the dogfood environment and should fix up the AppVeyor
tests
2017-01-21 13:51:01 -06:00
Ian Cordasco
944838d0ec
Merge branch 'py36' into 'master'
...
Add py36 to tox, correct a tiny typo
See merge request !168
2017-01-21 13:29:34 +00:00
Anthony Sottile
3afd74edf8
Add py36 to tox, correct a tiny typo
2017-01-20 12:18:29 -08:00
Ian Cordasco
e0fa9077ca
Merge branch 'fix-systema-typo' into 'master'
...
Correct "systema" typo in usage documentation.
See merge request !166
2017-01-18 11:46:54 +00:00
Andrew Drake
b806d122d3
Correct "systema" typo in usage documentation.
2017-01-17 14:58:50 -08:00
Ian Cordasco
e3674c40bc
Merge branch 'bug/290' into 'master'
...
Add AST support for Python 3.6
Closes #290
See merge request !165
2017-01-15 20:51:21 +00:00
Ian Cordasco
88cbf83d29
Add Python 3.6 to CI services
2017-01-15 11:26:12 -06:00
Ian Cordasco
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