Commit graph

1823 commits

Author SHA1 Message Date
Eric N. Vander Weele
8be5a7294b config: Normalize paths in config relative to provided parent directory
This sets things up to support normalizing paths relative to parent
directories specified by callers who have more context for determining
what paths should be relative to.
2020-05-18 17:22:34 -04:00
Anthony Sottile
c8494e7ac0 Merge branch 'master' into 'master'
Parse --jobs as a custom argparse type. Fixes #567

Closes #567

See merge request pycqa/flake8!428
2020-05-13 20:29:34 +00:00
Ruairidh MacLeod
45573570cf Parse --jobs as a custom argparse type. Fixes #567 2020-05-13 13:25:51 -07:00
Anthony Sottile
666be736e0 Merge branch 'useless-sort' into 'master'
Manager.run_parallel: Remove useless sort by (column, column)

See merge request pycqa/flake8!429
2020-05-13 19:21:08 +00:00
Anders Kaseorg
f17de702a5 Manager.run_parallel: Remove useless sort by (column, column)
Manager.report later sorts the results correctly by (line, column).

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-05-12 22:54:06 -07:00
Anthony Sottile
f94e0095fd Release 3.8.1 2020-05-11 22:29:53 -07:00
Anthony Sottile
00985a64bc Merge branch 'issue638-ouput-file' into 'master'
options: Forward `--output-file` to be reparsed for BaseFormatter

Closes #637

See merge request pycqa/flake8!427
2020-05-12 05:21:11 +00:00
Eric N. Vander Weele
e6d8a90e5d options: Forward --output-file to be reparsed for BaseFormatter
This fixes a regression introduced in daca2c8 and b14d47b.

The --output-file` option was consumed by the preliminary option parser.
However, the `BaseFormatter` class needs the option for setting the
output filename.  This special cases this option to ensure it gets
re-parsed and respected when specified on the CLI.
2020-05-11 22:17:52 -07:00
Anthony Sottile
b4d2850192 Release 3.8.0 2020-05-11 13:42:34 -07:00
Anthony Sottile
03c7dd3a8d Merge branch 'exclude_dotfiles' into 'master'
Fix using --exclude=.* to not match `.` and `..`

Closes #632

See merge request pycqa/flake8!424
2020-05-07 19:38:30 +00:00
Anthony Sottile
9e67511c69 Fix using --exclude=.* to not match . and .. 2020-05-07 12:34:38 -07:00
Anthony Sottile
6c4b5c85c6 Merge branch 'linters_py3' into 'master'
switch dogfood to use python3

See merge request pycqa/flake8!423
2020-05-07 18:35:08 +00:00
Anthony Sottile
309db63ba8 switch dogfood to use python3 2020-05-07 11:29:37 -07:00
Anthony Sottile
8905a7af9e Merge branch 'logical_position_out_of_bounds' into 'master'
Fix logical checks which report position out of bounds

Closes #635

See merge request pycqa/flake8!422
2020-05-07 18:25:36 +00:00
Anthony Sottile
609010ce7a Fix logical checks which report position out of bounds 2020-05-07 11:16:00 -07:00
Anthony Sottile
0c3b8045a7 Merge branch 'deprecate_git_hook' into 'master'
Add deprecation message for vcs hooks

Closes #568

See merge request pycqa/flake8!420
2020-04-27 20:03:51 +00:00
Anthony Sottile
1649827396 exclude broken pylint version
https://github.com/PyCQA/pylint/issues/3524
2020-04-27 13:00:17 -07:00
Anthony Sottile
43b14ff2d7 Add deprecation message for git hook 2020-04-27 12:55:07 -07:00
Anthony Sottile
0cdc1b9efe Release 3.8.0a2 2020-04-24 10:58:11 -07:00
Anthony Sottile
6f28112957 Merge branch 'keyerror_str' into 'master'
Fix type='str' optparse options

See merge request pycqa/flake8!419
2020-04-24 17:47:26 +00:00
Anthony Sottile
3b490bb3c5 Fix type='str' optparse options 2020-04-24 10:43:54 -07:00
Anthony Sottile
2cb1c65c99 Release 3.8.0.a1 2020-04-24 10:34:39 -07:00
Anthony Sottile
7319beabc2 Merge branch 'latest_pycodestyle' into 'master'
Allow the new pycodestyle alpha

See merge request pycqa/flake8!418
2020-04-24 00:59:03 +00:00
Anthony Sottile
275b2320b5 Allow the new pycodestyle alpha 2020-04-23 15:13:41 -07:00
Anthony Sottile
6efb15cecb Merge branch 'pyflakes_2_2' into 'master'
Support pyflakes 2.2.x

Closes #625

See merge request pycqa/flake8!417
2020-04-15 19:34:24 +00:00
Anthony Sottile
76eeccad89 Support pyflakes 2.2.x 2020-04-11 15:00:52 -07:00
Anthony Sottile
1be8707dc7 Merge branch 'patch-1' into 'master'
Docs: Fix typo

See merge request pycqa/flake8!416
2020-03-25 20:33:10 +00:00
Hugo
9a481c186e Fix typo 2020-03-25 20:29:47 +00:00
Anthony Sottile
eee1e7139d Merge branch 'docs-glossary-fix' into 'master'
docs: Add missing semicolon to term link

See merge request pycqa/flake8!415
2020-03-25 18:53:21 +00:00
Vilhelm Prytz
41599cb6b8
docs: Add missing semicolon to term link 2020-03-25 19:45:46 +01:00
Anthony Sottile
ec4b0f6e0b Merge branch 'tests_coverage' into 'master'
instrument coverage on tests and require 100% coverage there

See merge request pycqa/flake8!414
2020-03-23 19:35:54 +00:00
Anthony Sottile
93a17a806d instrument coverage on tests and require 100% coverage there 2020-03-23 12:15:29 -07:00
Anthony Sottile
d097d5103d Merge branch 'noqa_continuation' into 'master'
Allow noqa to apply to lines due to continuation

Closes #375

See merge request pycqa/flake8!413
2020-03-23 18:33:10 +00:00
Anthony Sottile
28797a57d8 Allow noqa to apply to lines due to continuation 2020-03-17 22:12:56 -07:00
Anthony Sottile
8f9b4931b9 Merge branch 'upgrade_pip_no_get_pip' into 'master'
Upgrade pip in gitlab ci without using get-pip.py

See merge request pycqa/flake8!411
2020-01-27 16:40:30 +00:00
Anthony Sottile
372b643a2b Upgrade pip in gitlab ci without using get-pip.py 2020-01-27 08:37:04 -08:00
Anthony Sottile
ebba642268 Merge branch 'config-appdirs' into 'master'
config: Determine path to user configuration immediately

See merge request pycqa/flake8!409
2020-01-21 02:31:37 +00:00
Eric N. Vander Weele
aab1f14375 config: Determine path to user configuration immediately
Preemptively determine the path of the user configuration file during
the construction of the `ConfigFileFinder` object.  The user
configuration path will always be the same, regardless of when it gets
obtained by a run of `flake8`.

This isolates the logic of determining the user configuration path into
a static helper method to be called to set the `.user_config_file`
attribute.  The helper method leverages `utils.is_windows()`, instead of
reimplementing the check, and decomposes clearly the directory name and
the base name to construct the path with a single `return` path.
Additionally, this avoids reconstructing the path on demand of obtaining
the user configuration file path.
2020-01-20 16:54:50 -05:00
Anthony Sottile
990adcd56e Merge branch 'config-remove-config-caching' into 'master'
config: Remove checks for configs being previously parsed

See merge request pycqa/flake8!408
2020-01-20 17:58:24 +00:00
Eric N. Vander Weele
716db1167e config: Remove checks for configs being previously parsed
Remove the checks to see if a configuration file has already been seen
and parsed.  These checks aren't necessary because the entire run of
`flake8` calls these methods *only* once per configuration provided.
2020-01-20 12:53:49 -05:00
Anthony Sottile
d583f051ed Merge branch 'file_not_found_error' into 'master'
Ensure that a not-found file produces an error

Closes #600

See merge request pycqa/flake8!404
2020-01-16 22:59:38 +00:00
Anthony Sottile
6223dd8ab7 Merge branch 'document_before_after' into 'master'
document that contents may appear before/after a noqa comment

Closes #528

See merge request pycqa/flake8!407
2020-01-16 22:58:19 +00:00
Anthony Sottile
b3f54c3f12 document that contents may appear before/after a noqa comment 2020-01-16 14:55:23 -08:00
Anthony Sottile
8f9f2813c3 Merge branch 'form_feed_difference' into 'master'
split lines the same when read from stdin

Closes #270

See merge request pycqa/flake8!406
2020-01-16 22:13:26 +00:00
Anthony Sottile
32c7ebcd7b split lines the same when read from stdin 2020-01-16 14:10:33 -08:00
Anthony Sottile
14293cc973 Merge branch 'warning_contains_option' into 'master'
Fix the type= warning to contain the option name

See merge request pycqa/flake8!405
2020-01-16 20:58:19 +00:00
Anthony Sottile
f4822d8783 Fix the type= warning to contain the option name 2020-01-16 12:54:52 -08:00
Anthony Sottile
bfb79b46c8 Ensure that a not-found file produces an error
- this restores a flake8 2.x behaviour that was lost in the refactor
2020-01-16 12:53:37 -08:00
Anthony Sottile
d7f6b5d710 Merge branch 'typo_fixes' into 'master'
Some typo fixes in git hooks docs

See merge request pycqa/flake8!403
2020-01-16 19:32:05 +00:00
Sorin Sbarnea
581a8b759b Some typo fixes in git hooks docs 2020-01-16 11:28:43 -08:00