Commit graph

1874 commits

Author SHA1 Message Date
Anthony Sottile
ff433b2e64 Merge branch 'fix_linters' into 'master'
fix test which was not testing anything

See merge request pycqa/flake8!462
2021-01-07 17:05:23 +00:00
Anthony Sottile
14857c98e0 fix test which was not testing anything 2021-01-07 08:57:13 -08:00
Anthony Sottile
39ceae7491 Merge branch 'remove_flake8_colors' into 'master'
remove flake8-colors

See merge request pycqa/flake8!460
2020-11-18 07:46:02 +00:00
Anthony Sottile
d2b8770b3f remove flake8-colors
they break `--format` in incompatible ways:
https://github.com/and3rson/flake8-colors/issues/12
2020-11-17 23:41:59 -08:00
Anthony Sottile
5f0ce1ff52 Merge branch 'rm_output_file_outdated_docs' into 'master'
remove outdated output-file configuration docs

See merge request pycqa/flake8!459
2020-11-14 00:18:34 +00:00
Anthony Sottile
14814b29ec remove outdated output-file configuration docs 2020-11-13 16:14:45 -08:00
Anthony Sottile
a4aeb2e209 Merge branch 'patch-1' into 'master'
Fix typos in --exclude-from-doctest docs

See merge request pycqa/flake8!455
2020-10-03 14:38:56 +00:00
Philipp Fischbeck
c91a82ce87 Fix typos in --exclude-from-doctest docs 2020-10-03 09:56:14 +02:00
Anthony Sottile
0f9a4b7606 Merge branch 'drop_py34' into 'master'
drop python3.4

See merge request pycqa/flake8!457
2020-10-02 23:51:02 +00:00
Anthony Sottile
a021df6fdd drop python3.4 2020-10-02 16:47:00 -07:00
Anthony Sottile
0efbb5dbcb Merge branch 'no_show_source' into 'master'
Add option to disable show-source for calling tools

See merge request pycqa/flake8!441
2020-10-02 23:40:04 +00:00
Anthony Sottile
fb91b994ed Release 3.8.4 2020-10-02 16:29:58 -07:00
Anthony Sottile
b5b4792f70 Merge branch 'py34_virtualenv_fix' into 'master'
limit the virtualenv version in python3.4

See merge request pycqa/flake8!456
2020-10-02 21:12:50 +00:00
Anthony Sottile
d3c55c1763 limit the virtualenv version in python3.4 2020-10-02 14:09:27 -07:00
Anthony Sottile
d0a0cb46d2 Merge branch 'video' into 'master'
add video tutorial to plugin development page

See merge request pycqa/flake8!453
2020-09-23 06:06:52 +00:00
Anthony Sottile
eb9ca33fe7 add video tutorial to plugin development page 2020-09-20 19:58:57 -07:00
Anthony Sottile
a42d8cbed4 Merge branch 'spelling' into 'master'
fix a few small spelling issues

See merge request pycqa/flake8!452
2020-09-21 02:21:12 +00:00
Anthony Sottile
2fe70dda6b fix a few small spelling issues
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:16:10 -07:00
Anthony Sottile
93209ffac9 Merge branch 'fix_linting_end_of_file' into 'master'
fix skipping of physical checks when file does not end in newline

See merge request pycqa/flake8!451
2020-09-15 23:46:05 +00:00
Anthony Sottile
ee9c2874a9 fix skipping of physical checks when file does not end in newline 2020-09-12 12:03:23 -07:00
Anthony Sottile
2c64d3ec5a Merge branch 'docs-options-defaults' into 'master'
Fix options docs to correct some defaults

See merge request pycqa/flake8!450
2020-09-02 15:59:45 +00:00
Brian Helba
76b7e0c23e Fix options docs to correct some defaults
Commit f963641e93 changed some defaults,
but did not update the docs.
2020-09-02 13:33:18 +00:00
Anthony Sottile
3765318dcf Merge branch 'bugfix/cpython-3770-semopen-missing' into 'master'
Support linting when missing sem_open syscall

See merge request pycqa/flake8!448
2020-08-27 22:44:56 +00:00
Nekokatt
e6a5f6a663 Support linting when missing sem_open syscall
Platforms such as Termux on Android, and other exotic devices
do not provide a sem_open implementation on the OS level. This
is problematic, as the error resulting from this occurs when
calling multiprocessing.Pool, throwing an unhandled ImportError.

The issue itself is outlined in https://bugs.python.org/issue3770.

This change allows devices missing this system call to respond
to the missing feature by falling back to synchronous execution,
which appears to be the default behaviour if the multiprocessing
module is not found.

This change also adds a potential fix for developers working
on platforms where multiprocessing itself cannot be imported.
The existing code would set the name referencing the import to
None, but there are no clear checks to ensure this does not
result in an AttributeError later when multiprocessing.Pool
has accession attempts.

Existing users should see no difference in functionality, as they
will assumably already be able to use flake8, so will not be
missing this sem_open call.

Users on devices without the sem_open call will now be able
to use flake8 where they would be unable to before due to
unhandled ImportErrors.
2020-08-27 15:41:25 -07:00
Anthony Sottile
abdc9b14d6 Merge branch 'upgrade_black' into 'master'
upgrade black and run via pre-commit

See merge request pycqa/flake8!449
2020-08-27 22:33:44 +00:00
Anthony Sottile
f0e1324d6d upgrade black and run via pre-commit 2020-08-27 15:30:14 -07:00
Anthony Sottile
e8afdffc8a Merge branch 'fix_link' into 'master'
fix link in configuration docs

See merge request pycqa/flake8!447
2020-08-22 20:13:04 +00:00
Anthony Sottile
9e41e13627 fix link in configuration docs 2020-08-22 13:09:16 -07:00
Anthony Sottile
2200c1a82c Merge branch 'patch-1' into 'master'
add note to configuration.rst that inline comments are not supported

Closes #682

See merge request pycqa/flake8!446
2020-08-22 01:15:30 +00:00
Janosh Riebesell
d079132883 add note to configuration.rst that inline comments are not supported 2020-08-21 18:12:19 -07:00
Ian Stapleton Cordasco
e897cfac39 Merge branch 'patch-2' into 'master'
Fixed misprint.

See merge request pycqa/flake8!445
2020-07-28 18:37:25 +00:00
Ian Stapleton Cordasco
9d0115cd07 Merge branch 'patch-1' into 'master'
Update registering-plugins.rst

See merge request pycqa/flake8!444
2020-07-28 18:37:05 +00:00
Max Grishkin
f82bceffaf Fixed misprint. 2020-07-28 18:18:58 +00:00
Max Grishkin
6dde678564 Update registering-plugins.rst 2020-07-28 18:08:55 +00:00
Anthony Sottile
029fa1d797 Merge branch 'pytest6' into 'master'
Tests: Add a value to mocked entry_points, so pytest 6+ can log it

See merge request pycqa/flake8!443
2020-07-20 15:54:12 +00:00
Miro Hrončok
91b09d5b37 Tests: Add a value to mocked entry_points, so pytest 6+ can log it
Pytest 6.0.0rc1 attempts to log a repr of our mocked entry_point,
but it fails, becasue the repr metohod expects a valua attribute:

Reproducer:

    $ tox -e py38 --force-dep 'pytest==6.0.0rc1'
    ...
    Traceback (most recent call last):
      File "/usr/lib/python3.8/logging/__init__.py", line 1081, in emit
        msg = self.format(record)
      File "/usr/lib/python3.8/logging/__init__.py", line 925, in format
        return fmt.format(record)
      File "/usr/lib/python3.8/logging/__init__.py", line 664, in format
        record.message = record.getMessage()
      File "/usr/lib/python3.8/logging/__init__.py", line 369, in getMessage
        msg = msg % self.args
      File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/flake8/plugins/manager.py", line 44, in __repr__
        self.name, self.entry_point.value
      File "/tmp/flake8/.tox/py38/lib/python3.8/site-packages/mock/mock.py", line 632, in __getattr__
        raise AttributeError("Mock object has no attribute %r" % name)
    AttributeError: Mock object has no attribute 'value'
2020-07-20 17:49:12 +02:00
Anthony Sottile
b40af6737e Add option to disable show-source for calling tools 2020-06-19 10:01:04 -07:00
Anthony Sottile
a7be77f761 Merge branch 'ban_sphinx_3_1_0' into 'master'
skip sphinx 3.1.0

See merge request pycqa/flake8!438
2020-06-08 21:54:33 +00:00
Anthony Sottile
c778fbf680 skip sphinx 3.1.0
See https://github.com/sphinx-doc/sphinx/issues/7807
2020-06-08 14:50:31 -07:00
Anthony Sottile
181bb46098 Release 3.8.3 2020-06-08 12:27:04 -07:00
Anthony Sottile
3d68da9e8e Merge branch 'doctests-flag-desc' into 'master'
Doctest documentation unclear

Closes #659

See merge request pycqa/flake8!436
2020-06-07 19:50:11 +00:00
msmetko
e817c63ab1 Help clarify the option behaviour 2020-06-07 14:32:43 +02:00
Anthony Sottile
b6d3fcacff Merge branch 'issues/665' into 'master'
fix JobsArgument --help output

Closes #665

See merge request pycqa/flake8!434
2020-06-05 19:00:02 +00:00
Ruairidh MacLeod
9b8f908314 fix JobsArgument --help output 2020-06-05 14:25:57 +01:00
Anthony Sottile
94304de684 Merge branch 'issue-662' into 'master'
processor: Catch SyntaxError also when generating tokens for a file

Closes #662

See merge request pycqa/flake8!433
2020-06-02 18:42:09 +00:00
Eric N. Vander Weele
a68d4d0172 processor: Catch SyntaxError also when generating tokens for a file
`tokenize.generate_tokens()` can also raise `SyntaxError` in addition to
`tokenize.TokenError`.
2020-06-02 11:38:44 -07:00
Anthony Sottile
40716454a2 Release 3.8.2 2020-05-22 15:36:22 -07:00
Anthony Sottile
b9fe4d601c Merge branch 'extend_exclude_is_files' into 'master'
treat --extend-exclude as a file list

Closes #653

See merge request pycqa/flake8!432
2020-05-21 23:44:49 +00:00
Anthony Sottile
31c2f9f366 treat --extend-exclude as a file list 2020-05-21 16:41:02 -07:00
Anthony Sottile
d95f9cf0fe Merge branch 'opt-config-relative-to' into 'master'
Normalize paths in CLI-specified config relative to config file's directory

Closes #651

See merge request pycqa/flake8!431
2020-05-21 23:37:50 +00:00