diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97b3c48..7d2d6a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index bd4ab56..14e4e1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "banks" dynamic = ["version"] description = 'A prompt programming language' readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.8" license = "MIT" keywords = [] authors = [ @@ -16,11 +16,11 @@ authors = [ classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "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", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] @@ -56,7 +56,7 @@ cov = [ ] [[tool.hatch.envs.all.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11"] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] [tool.hatch.envs.lint] detached = false # Normally the linting env can be detached, but mypy doesn't install all the stubs we need @@ -69,12 +69,12 @@ dependencies = [ [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive {args:src/banks}" style = [ - "ruff {args:.}", + "ruff check {args:.}", "black --check --diff {args:.}", ] fmt = [ "black {args:.}", - "ruff --fix {args:.}", + "ruff check --fix {args:.}", "style", ] all = [ @@ -90,12 +90,12 @@ only-include = ["src/banks", "src/templates"] "templates" = "banks/templates" [tool.black] -target-version = ["py37"] +target-version = ["py39"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py37" +target-version = "py39" line-length = 120 select = [ "A",