Skip to content

Commit 719ab14

Browse files
committed
chore: support python 3.7
1 parent 2bab774 commit 719ab14

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333
hooks:
3434
- id: pyupgrade
3535
args:
36-
- --py38-plus
36+
- --py37-plus
3737
- repo: https://github.com/charliermarsh/ruff-pre-commit
3838
rev: v0.0.274
3939
hooks:

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-choices-field"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
description = "Django field that set/get django's new TextChoices/IntegerChoices enum."
55
authors = ["Thiago Bellini Ribeiro <[email protected]>"]
66
license = "MIT"
@@ -17,6 +17,7 @@ classifiers = [
1717
"Operating System :: OS Independent",
1818
"Programming Language :: Python",
1919
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.7",
2021
"Programming Language :: Python :: 3.8",
2122
"Programming Language :: Python :: 3.9",
2223
"Programming Language :: Python :: 3.10",
@@ -30,7 +31,7 @@ classifiers = [
3031
packages = [{ include = "django_choices_field" }]
3132

3233
[tool.poetry.dependencies]
33-
python = "^3.8"
34+
python = ">=3.7"
3435
django = ">=3.2"
3536
typing_extensions = ">=4.0.0"
3637

@@ -46,7 +47,7 @@ ruff = "^0.0.274"
4647

4748
[tool.black]
4849
line-length = 100
49-
target-version = ['py38']
50+
target-version = ['py37']
5051
preview = true
5152
exclude = '''
5253
/(
@@ -121,7 +122,7 @@ ignore = [
121122
"SLF001",
122123
"TRY003",
123124
]
124-
target-version = "py38"
125+
target-version = "py37"
125126
exclude = [
126127
".eggs",
127128
".git",
@@ -142,7 +143,7 @@ exclude = [
142143
convention = "google"
143144

144145
[tool.pyright]
145-
pythonVersion = "3.8"
146+
pythonVersion = "3.7"
146147
useLibraryCodeForTypes = true
147148
venvPath = "."
148149
venv = ".venv"

0 commit comments

Comments
 (0)