Skip to content

Commit

Permalink
Drop support for EOL Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 11, 2023
1 parent a062d5c commit 9e8a10e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions autoload/black.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def _initialize_black_env(upgrade=False):
return True

pyver = sys.version_info[:3]
if pyver < (3, 7):
print("Sorry, Black requires Python 3.7+ to run.")
if pyver < (3, 8):
print("Sorry, Black requires Python 3.8+ to run.")
return False

from pathlib import Path
Expand Down
6 changes: 3 additions & 3 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ disabled-by-default counterpart W504. E203 should be disabled while changes are

## Which Python versions does Black support?

Currently the runtime requires Python 3.7-3.11. Formatting is supported for files
Currently the runtime requires Python 3.8-3.11. Formatting is supported for files
containing syntax from Python 3.3 to 3.11. We promise to support at least all Python
versions that have not reached their end of life. This is the case for both running
_Black_ and formatting code.
Expand All @@ -95,7 +95,7 @@ Support for formatting Python 2 code was removed in version 22.0. While we've ma
plans to stop supporting older Python 3 minor versions immediately, their support might
also be removed some time in the future without a deprecation period.

Runtime support for 3.6 was removed in version 22.10.0.
Runtime support for 3.6 was removed in version 22.10.0, and for 3.7 in 23.7.0.

## Why does my linter or typechecker complain after I format my code?

Expand All @@ -107,7 +107,7 @@ codebase with _Black_.

## Can I run Black with PyPy?

Yes, there is support for PyPy 3.7 and higher.
Yes, there is support for PyPy 3.8 and higher.

## Why does Black not detect syntax errors in my code?

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Also, you can try out _Black_ online for minimal fuss on the

## Installation

_Black_ can be installed by running `pip install black`. It requires Python 3.7+ to run.
_Black_ can be installed by running `pip install black`. It requires Python 3.8+ to run.
If you want to format Jupyter Notebooks, install with `pip install "black[jupyter]"`.

If you can't wait for the latest _hotness_ and want to install from GitHub, use:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
isolated_build = true
envlist = {,ci-}py{37,38,39,310,311,py3},fuzz,run_self
envlist = {,ci-}py{38,39,310,311,py3},fuzz,run_self

[testenv]
setenv =
Expand Down

0 comments on commit 9e8a10e

Please sign in to comment.