Skip to content

Commit

Permalink
support back to python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
zkurtz committed Nov 23, 2024
1 parent 3777d1a commit 5d00768
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,25 @@ jobs:
build:
name: continuous-integration
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Overwrite .python-version
run: echo ${{ matrix.python-version }} > .python-version

- name: Set up uv
run: pip install uv

- name: Check code quality with Ruff
run: uv run ruff check .
run: |
uv run ruff check
uv run ruff format --check
- name: Check type hints with pyright
run: uv run pyright
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.2
3.12
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ We're [on pypi](https://pypi.org/project/dummio/), so `pip install dummio`.
git clone [email protected]:zkurtz/dummio.git
cd dummio
pip install uv
uv sync --group extras
uv sync
source .venv/bin/activate
pre-commit install
```
6 changes: 3 additions & 3 deletions dummio/constants.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Constants for dummio."""

from pathlib import Path
from typing import Any
from typing import Any, TypeAlias

type PathType = str | Path
type AnyDict = dict[Any, Any]
PathType: TypeAlias = str | Path
AnyDict: TypeAlias = dict[Any, Any]

DEFAULT_ENCODING = "utf-8"
DEFAULT_WRITE_MODE = "w"

0 comments on commit 5d00768

Please sign in to comment.