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
Ian Stapleton Cordasco
ff3a7813d6
Add release note for VCS hook change
...
See also https://gitlab.com/pycqa/flake8/merge_requests/198
2017-08-07 05:59:29 -05:00
Ian Stapleton Cordasco
1f0e6a6ffa
Merge branch 'hook_conf' into 'master'
...
Tell user how to configure VCS hooks
See merge request !198
2017-08-07 10:56:37 +00:00
Peter Cock
12660a6fb7
Remove trailing new line; insert raises
2017-08-07 11:39:18 +01:00
Carl Meyer
18c0b14b5c
Append [local] to version of local plugins.
2017-08-06 20:57:04 -07:00
Carl Meyer
2cadc060d3
Don't load local plugins from user config.
2017-08-06 20:47:02 -07:00
Carl Meyer
f82aab5820
Minor argument changes.
2017-08-06 20:46:46 -07:00
Ian Stapleton Cordasco
1820afa4a4
Merge branch 'missing-rel-notes' into 'master'
...
dd missing release notes for 3.5.0
See merge request !202
2017-08-07 01:04:10 +00:00
Ian Stapleton Cordasco
88bc24ce97
Add missing release notes for 3.5.0
2017-08-06 20:00:34 -05:00
Ian Stapleton Cordasco
7db5561363
Merge branch 'bug/359' into 'master'
...
Update pyflakes range and include doc links
See merge request !201
2017-08-06 19:20:42 +00:00
Ian Stapleton Cordasco
b714bdff0b
Update pyflakes range and include doc links
2017-08-06 14:16:12 -05:00
Ian Stapleton Cordasco
6e656c64c7
Merge branch 'bug/361' into 'master'
...
Add new pycodestyle checks
Closes #361
See merge request !199
2017-08-06 19:09:56 +00:00
Ian Stapleton Cordasco
f6e19b0748
Merge branch 'prepare/3.5.0' into 'master'
...
Prepare master branch for development of 3.5.0
See merge request !200
2017-08-06 19:08:26 +00:00
Ian Stapleton Cordasco
778ddf3ce1
Prepare master branch for development of 3.5.0
2017-08-06 14:02:58 -05:00
Ian Stapleton Cordasco
ee43559348
Add new pycodestyle checks
...
Closes #361
2017-08-05 07:27:20 -05:00
Peter Cock
9457d84cfd
Tell user how to configure VCS hooks.
...
Also fills out the hg install hook docstring.
This would close GitLab issue #335 .
2017-08-04 11:47:50 +01:00
Carl Meyer
06a5e19769
Handle argv being None.
2017-08-03 11:05:33 -07:00
Carl Meyer
4e58068657
Add support for local (in-repo, non-setuptools) plugins.
...
Closes #357
2017-08-03 00:25:37 -07:00
Ian Cordasco
6df26ffd57
Merge branch 'bug/356' into 'master'
...
Allow spaces in # noqa lists
Closes #356
See merge request !196
2017-07-29 00:37:09 +00:00
Ian Stapleton Cordasco
ec996ffd85
Allow spaces in # noqa lists
...
To match our new configuration file format and its allowance for spaces
in the list
Closes #356
2017-07-28 19:31:32 -05:00
Ian Cordasco
a4f2135c77
Merge branch 'bug/354' into 'master'
...
Fix regression in --select behaviour in v3.4.0
Closes #354
See merge request !195
2017-07-28 11:21:22 +00:00
Ian Stapleton Cordasco
411edfa6f9
Bump version to 3.4.1 and add release notes
2017-07-28 06:15:49 -05:00
Ian Stapleton Cordasco
a44a09f87a
Remediate one wafer thing decision logic bug
...
Previously we were hitting the catch-all return that decided the error
was selected. Instead, let's add specific logic since we now know how we
would hit that and we actually don't want it to be selected.
Closes #354
2017-07-28 06:10:12 -05:00
Ian Stapleton Cordasco
0239f15dcc
Release v3.4.0
2017-07-27 18:57:29 -05:00
Ian Stapleton Cordasco
69eaa28da2
Update name across the project post-marriage
2017-07-27 18:47:38 -05:00
Ian Stapleton Cordasco
a0dabc1d42
Merge branch 'fix-quiet'
2017-07-27 18:44:39 -05:00
Shinya Kawaguchi
55e85b4b50
Fix quiet/verbose config problem
2017-07-27 18:44:08 -05:00
Ian Cordasco
1bd88848ce
Merge branch 'fix-metadata' into 'master'
...
Use extras_require instead of conditional code.
See merge request !191
2017-07-27 23:39:08 +00:00
Ian Cordasco
98cf75922f
Merge branch 'patch-1' into 'master'
...
Removed unused imported module `os` from flake8.main.git._HOOK_TEMPLATE
See merge request !194
2017-07-27 11:47:05 +00:00
Ayman Nedjmeddine
43e2648ac3
Removed unused imported module os form flake8.main.git._HOOK_TEMPLATE
2017-07-27 10:59:49 +00:00
Shinya Kawaguchi
98b9946a78
Reproduce quiet/verbose config problem
2017-07-22 16:18:58 +09:00
Zvezdan Petkovic
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
Ian Cordasco
01f8824490
Merge branch 'refactor-decision-engine' into 'master'
...
Refactor decision logic into its own object
See merge request !190
2017-06-04 20:11:32 +00:00
Ian Cordasco
ff07ca3ed9
Add some better comments for decision logic
2017-06-04 15:07:10 -05:00
Ian Cordasco
e8c6a1e2f5
Get *one* more line of test coverage
...
This was mostly to prove to myself that we could possibly reach that
return more than actually covering that return. This just shows how
gnarly this logic actually is. I wish there were a better way to write
it.
2017-06-04 14:51:01 -05:00
Ian Cordasco
86e1fb6e64
Pull decision making out of decision_for
...
Also, this further highlights why naming methods is so hard. I can't
think of a better name for 'more_specific_decision_for' that isn't
wildly long and unnecessarily verbose.
2017-06-04 14:50:20 -05:00
Ian Cordasco
3921afccff
Update internal documentation around StyleGuide
2017-06-04 13:43:26 -05:00
Ian Cordasco
92c367dee4
Rename style_guide.Error to style_guide.Violation
...
Move all Violation related methods from the StyleGuide to our Violation
class.
2017-06-04 07:57:28 -05:00
Ian Cordasco
65107a5624
Rename methods on the new DecisionEngine
...
Rename `decision_for` to `more_specific_decision_for` and
`should_report_error` to `decision_for`.
2017-06-03 19:20:46 -05:00
Ian Cordasco
583fda7a70
Move unit tests for StyleGuide decision logic
...
Convert it to test the DecisionEngine class directly and put them in
their own file.
2017-06-02 19:16:28 -05:00
Ian Cordasco
7fef0af0f5
Refactor decision logic into its own object
...
In dealing with the decision logic in the StyleGuide recently I
recognized that the logic really doesn't belong strictly on the
StyleGuide. A separate object makes perfect sense especially from the
perspective of testability. This is a minor refactor intended solely to
facilitate further testing and perhaps making the logic easier to
understand for others.
2017-06-01 20:36:37 -05:00
Ian Cordasco
feec0754bd
Add debugging utility for FileChecker
2017-06-01 20:06:34 -05:00
Ian Cordasco
68c6577564
Merge branch 'bug/333' into 'master'
...
Add documentation for using --select and --ignore seperately and together
See merge request !188
2017-05-30 01:28:01 +00:00
Ian Cordasco
1827b8cc82
Add way to get back to options index
2017-05-29 20:24:30 -05:00