Skip to content

Remove Nox session for Flake8#236

Merged
cjolowicz merged 11 commits intomasterfrom
remove-nox-flake8
May 9, 2020
Merged

Remove Nox session for Flake8#236
cjolowicz merged 11 commits intomasterfrom
remove-nox-flake8

Conversation

@cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented May 7, 2020

Remove the Nox session for Flake8, which has been superceded by a pre-commit hook. Remove the development dependencies for Flake8 and its extensions from Poetry.

This change drops support for running Flake8 on older Python versions. While we could add pre-commit hooks for older Python versions, the boilerplate in the pre-commit config does not seem worth it. We still have a Nox session for mypy running on all supported Python versions, so hopefully most issues with unsupported syntax will be caught be mypy.

See pre-commit/pre-commit#1425

This change also drops the flake8-black extension, which is not installed into the pre-commit environment for Flake8. Black runs in its own pre-commit hook, so having the same check inside the Flake8 hook does not offer added value.

@cjolowicz cjolowicz added the removal Removals and Deprecations label May 7, 2020
@cjolowicz cjolowicz added this to the 2020.5.15 milestone May 7, 2020
@cjolowicz cjolowicz force-pushed the remove-nox-flake8 branch 5 times, most recently from 587ed17 to 5948ca0 Compare May 9, 2020 06:23
@cjolowicz cjolowicz force-pushed the remove-nox-flake8 branch from 5948ca0 to 2ac1b44 Compare May 9, 2020 06:45
@cjolowicz cjolowicz merged commit 9152777 into master May 9, 2020
@cjolowicz cjolowicz deleted the remove-nox-flake8 branch May 9, 2020 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

removal Removals and Deprecations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant