Skip to content

Commit

Permalink
Add Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
anze3db committed Dec 4, 2023
1 parent 0f589d5 commit bdeef94
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Calendar Versioning](https://calver.org).

## [23.6] - 2023-12-04

Add Python 3.12 support.

## [23.5] - 2023-08-19

Test release to try out Trusted Publishers.
Expand Down
16 changes: 6 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"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",
]
Expand All @@ -40,6 +41,7 @@ words-tui = "words_tui.cli:words_tui"
path = "src/words_tui/__about__.py"

[tool.hatch.envs.default]
python = "3.12"
dependencies = [
"coverage[toml]>=6.5",
"pytest",
Expand All @@ -60,22 +62,21 @@ cov = [
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.lint]
extra-dependencies = [
"black>=23.1.0",
"mypy>=1.0.0",
"ruff>=0.0.243",
"ruff>=0.1.6",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/words_tui tests}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}",
"ruff format {args:.}",
]
fmt = [
"black {args:.}",
"ruff {args:.}",
"ruff --fix {args:.}",
"style",
]
Expand All @@ -84,11 +85,6 @@ all = [
"typing",
]

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
2 changes: 1 addition & 1 deletion src/words_tui/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present Anže Pečar <anze@pecar.me>
#
# SPDX-License-Identifier: MIT
__version__ = "23.5"
__version__ = "23.6"

0 comments on commit bdeef94

Please sign in to comment.