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
11 changes: 3 additions & 8 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.7"

- name: Install just
uses: extractions/setup-just@v4

- name: Install optional
run: uv sync --all-extras
run: pdm install -G dev

- name: Run Formatter
run: just format
13 changes: 4 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.7"

- name: Install Just
- name: Install just
uses: extractions/setup-just@v4

- name: Install optional
run: uv sync --all-extras
run: pdm install -G dev

- name: Run Linter
run: just lint
11 changes: 3 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.11.7"

- name: Install just
uses: extractions/setup-just@v4

- name: Install optional
run: uv sync --all-extras
run: pdm install -G dev

- name: Run Unit Tests
run: just test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ wheels/

# Coverage
.coverage

# PDM files
.pdm-python
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,16 @@ There is complete test coverage and they pass in all Python versions 3.10 and up

### Running Unit Tests

First, install `uv` using the instructions located [here](https://docs.astral.sh/uv/getting-started/installation).
First, install `pdm` using the instructions located [here](https://pdm-project.org/en/latest/#installation).

Then, install the requirements using:

```bash
uv sync --all-extras
pdm install -G dev
```

You can run the tests (with coverage) using:

```bash
uv run pytest
pdm run pytest
```
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ commands:
# Run unit tests
[group('test')]
test:
@uv run python -m pytest
@pdm run python -m pytest

# Lint source code
[parallel, group('dev')]
Expand All @@ -14,17 +14,17 @@ lint: lint-ruff lint-basedpyright
# Lint code using ruff
[private, group('dev')]
lint-ruff:
@uv run python -m ruff check src tests
@pdm run python -m ruff check src tests

# Lint code using basedpyright
[private, group('dev')]
lint-basedpyright:
@uv run python -m basedpyright src tests
@pdm run python -m basedpyright src tests

# Format code using ruff
[group('dev')]
format:
@uv run python -m ruff format src tests
@pdm run python -m ruff format src tests

# Check for editorconfig violations using editorconfig-checker
[group('dev')]
Expand Down
749 changes: 749 additions & 0 deletions pdm.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ requires-python = ">= 3.10"
dependencies = []

[build-system]
requires = ["uv_build>=0.11.0,<0.12.0"]
build-backend = "uv_build"
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
[project.optional-dependencies]
dev = [
"basedpyright>=1.31.7",
"coverage>=7.10.7",
Expand All @@ -27,8 +27,8 @@ dev = [
"typing-extensions>=4.15.0",
]

[tool.uv.build-backend]
module-name = "optional"
[tool.hatch.build.targets.wheel]
packages = ["src/optional"]

[tool.pytest.ini_options]
addopts = "--cov=optional"
Expand Down
462 changes: 0 additions & 462 deletions uv.lock

This file was deleted.

Loading