Skip to content

Commit e34718c

Browse files
committed
Updated supported Python versions and improved tox and ruff configs
1 parent 01c6c80 commit e34718c

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4

CHANGES.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Version history
22
===============
33

4+
**UNRELEASED**
5+
6+
- Dropped support for Python 3.8
7+
48
**3.0.0rc5**
59

610
- Fixed pgvector support not working

pyproject.toml

+13-13
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ classifiers = [
2121
"Topic :: Software Development :: Code Generators",
2222
"Programming Language :: Python",
2323
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
2827
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
2929
]
30-
requires-python = ">=3.8"
30+
requires-python = ">=3.9"
3131
dependencies = [
3232
"SQLAlchemy >= 2.0.23",
3333
"inflect >= 4.0.0",
@@ -66,21 +66,24 @@ version_scheme = "post-release"
6666
local_scheme = "dirty-tag"
6767

6868
[tool.ruff]
69-
select = [
70-
"E", "F", "W", # default Flake8
69+
src = ["src"]
70+
71+
[tool.ruff.lint]
72+
extend-select = [
7173
"I", # isort
7274
"ISC", # flake8-implicit-str-concat
7375
"PGH", # pygrep-hooks
7476
"RUF100", # unused noqa (yesqa)
7577
"UP", # pyupgrade
78+
"W", # pycodestyle warnings
7679
]
7780
src = ["src"]
7881

7982
[tool.mypy]
8083
strict = true
8184

8285
[tool.pytest.ini_options]
83-
addopts = "-rsx --tb=short"
86+
addopts = "-rsfE --tb=short"
8487
testpaths = ["tests"]
8588

8689
[coverage.run]
@@ -91,13 +94,10 @@ relative_files = true
9194
show_missing = true
9295

9396
[tool.tox]
94-
legacy_tox_ini = """
95-
[tox]
96-
envlist = py38, py39, py310, py311, py312
97+
env_list = ["py39", "py310", "py311", "py312", "py313"]
9798
skip_missing_interpreters = true
98-
minversion = 4.0.0
9999

100-
[testenv]
101-
extras = test
102-
commands = python -m pytest {posargs}
103-
"""
100+
[tool.tox.env_run_base]
101+
package = "editable"
102+
commands = [["python", "-m", "pytest", { replace = "posargs", extend = true }]]
103+
extras = ["test"]

0 commit comments

Comments
 (0)