Skip to content

Commit

Permalink
Merge pull request #7 from zkurtz/modernize
Browse files Browse the repository at this point in the history
support back to python 3.10
  • Loading branch information
zkurtz authored Nov 23, 2024
2 parents 3777d1a + 619e049 commit 50ced16
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 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"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dummio"
version = "0.0.3"
version = "0.1.0"
description = "Easiest-possible IO for basic file types."
authors = [{ name = "Zach Kurtz", email = "[email protected]" }]
readme = "README.md"
Expand Down

0 comments on commit 50ced16

Please sign in to comment.