Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
TEST_MSSQL_PASS: Abcd12345678
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.x'
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Changelog
====

0.2.0 (unreleased)
-------------------
-------------------
Added
^^^^^
- Run bandit check in ci
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ style: deps _style
_codeqc:
#mypy $(checkfiles)
bandit -c pyproject.toml -r $(checkfiles)
twine check dist/*
uvx twine check dist/*
codeqc: build _codeqc

_check: _build
Expand Down Expand Up @@ -51,4 +51,4 @@ _build:
build: deps _build

publish: deps build
twine upload dist/*
echo 'Use github action instead of `twine upload dist/*`'
2 changes: 1 addition & 1 deletion asyncodbc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def __del__(self):
self._conn.close()
self._conn = None

warnings.warn("Unclosed connection {!r}".format(self), ResourceWarning)
warnings.warn(f"Unclosed connection {self!r}", ResourceWarning)

context = {"connection": self, "message": "Unclosed connection"}
if self._source_traceback is not None:
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [{name="long2ice", email="long2ice@gmail.com"}]
license = "Apache-2.0"
readme = "README.rst"
keywords = ["sql", "async", "asyncio", "aio", "mssql", "odbc"]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = ["pyodbc"]

[project.urls]
Expand All @@ -18,8 +18,8 @@ documentation = "https://github.com/tortoise/asyncodbc"
dev = [
"ruff >=0.14.1",
"bandit >=1.8.6",
"mypy >=1.18.2",
"twine >=6.2.0",
# TODO: Add mypy back after typing issues fixed
# "mypy >=1.18.2",
]
test = [
"pytest >=8.4.2",
Expand All @@ -33,11 +33,11 @@ docs = [
]

[build-system]
requires = ["pdm-backend"]
requires = ["pdm-backend>=2.4.8"]
build-backend = "pdm.backend"

[tool.pdm]
version = {source="file", path="asyncodbc/__init__.py"}
[tool.pdm.version]
path = "asyncodbc/__init__.py"

[tool.pdm.build]
excludes = ["./**/.git", "./**/.*_cache", "./**/*.pyc", "./**/*.swp"]
Expand Down
1,455 changes: 422 additions & 1,033 deletions uv.lock

Large diffs are not rendered by default.

Loading