Skip to content

Commit

Permalink
Updated supported Python versions and improved tox and ruff configs
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jan 23, 2025
1 parent 01c6c80 commit e34718c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Version history
===============

**UNRELEASED**

- Dropped support for Python 3.8

**3.0.0rc5**

- Fixed pgvector support not working
Expand Down
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ classifiers = [
"Topic :: Software Development :: Code Generators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: 3.13",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"SQLAlchemy >= 2.0.23",
"inflect >= 4.0.0",
Expand Down Expand Up @@ -66,21 +66,24 @@ version_scheme = "post-release"
local_scheme = "dirty-tag"

[tool.ruff]
select = [
"E", "F", "W", # default Flake8
src = ["src"]

[tool.ruff.lint]
extend-select = [
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
]
src = ["src"]

[tool.mypy]
strict = true

[tool.pytest.ini_options]
addopts = "-rsx --tb=short"
addopts = "-rsfE --tb=short"
testpaths = ["tests"]

[coverage.run]
Expand All @@ -91,13 +94,10 @@ relative_files = true
show_missing = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py39, py310, py311, py312
env_list = ["py39", "py310", "py311", "py312", "py313"]
skip_missing_interpreters = true
minversion = 4.0.0

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

0 comments on commit e34718c

Please sign in to comment.