Skip to content

Commit

Permalink
Drop support for Python 3.8 and 3.9 versions
Browse files Browse the repository at this point in the history
since ast implementation is incompatible with newer Python versions:
import alias AST node lacks mandatory lineno attribute.
  • Loading branch information
albertas committed Jul 10, 2024
1 parent fb32010 commit a3cd6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fix: format fixlint

.venv:
pip install uv
uv venv -p 3.8 .venv
uv venv -p 3.10 .venv
uv pip sync requirements-dev.txt
uv pip install -e .[test]

Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ authors = [
]
description = "Find and remove dead code."
readme = "README.md"
requires-python = ">= 3.8"
requires-python = ">= 3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -159,7 +157,7 @@ ignore = [

[tool.mypy]
exclude = ["build", "dist", ".venv"]
python_version = "3.8"
python_version = "3.10"
strict = true
pretty = true
color_output = true
Expand Down Expand Up @@ -195,7 +193,7 @@ ignore_names = [
ignore_names_in_files = [
"deadcode/utils/base_test_case.py"
]
exclude = ["tests*"]
exclude = ["tests"]

[tool.black]
max_line_length = 120
Expand Down

0 comments on commit a3cd6c7

Please sign in to comment.