Skip to content
Open
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
17 changes: 9 additions & 8 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.11"
enable-cache: true

- name: Set up Python
run: uv python install

- name: Install hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade hatch
- name: Install the project
run: uv sync --locked --group docs

- name: Build docs
run: hatch run docs:build
run: uv run mkdocs build --clean --strict
20 changes: 12 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: "3.11"
enable-cache: true

- name: Install hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade hatch
- name: Set up Python
run: uv python install

- name: Install the project
run: uv sync --locked --group dev

- name: Run linters
run: hatch run lint:all
run: |
uv run ruff check .
uv run ruff format --check .
uv run pyright src/iterum type_tests
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install hatch
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade hatch
- name: Install the project
run: uv sync --locked --group dev

- name: Run tests
run: hatch run test:cov
run: uv run pytest --cov=src/iterum --cov-config=pyproject.toml --cov-report=term-missing --doctest-modules -vvvx
25 changes: 0 additions & 25 deletions .pre-commit-config.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@

[![PyPI - Version](https://img.shields.io/pypi/v/iterum.svg)](https://pypi.org/project/iterum)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/iterum.svg)](https://pypi.org/project/iterum)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![project - uv](https://img.shields.io/badge/%F0%9F%A5%9A-uv-4051b5.svg)](https://github.com/astral-sh/uv)


[![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![code style - Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![types - Pyright](https://microsoft.github.io/pyright/img/pyright_badge.svg)](https://microsoft.github.io/pyright/)
[![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/)

Expand Down
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

[![PyPI - Version](https://img.shields.io/pypi/v/iterum.svg)](https://pypi.org/project/iterum)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/iterum.svg)](https://pypi.org/project/iterum)
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
[![project - uv](https://img.shields.io/badge/%F0%9F%A5%9A-uv-4051b5.svg)](https://github.com/astral-sh/uv)


[![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![code style - Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![types - Pyright](https://microsoft.github.io/pyright/img/pyright_badge.svg)](https://microsoft.github.io/pyright/)
[![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/)

Expand Down
54 changes: 0 additions & 54 deletions hatch.toml

This file was deleted.

1 change: 0 additions & 1 deletion iterum/__about__.py

This file was deleted.

84 changes: 0 additions & 84 deletions iterum/__init__.py

This file was deleted.

50 changes: 25 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["uv_build"]
build-backend = "uv_build"

[project]
name = "iterum"
Expand All @@ -18,31 +18,31 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
version = "0.2.0"

[project.urls]
Documentation = "https://tjsmart.github.io/iterum"
Source = "https://github.com/tjsmart/iterum"

[tool.setuptools.package-data]
iterum = ["py.typed"]

[tool.hatch]
version.path = "iterum/__about__.py"

[tool.coverage.run]
branch = true
parallel = true
omit = [
"iterum/__about__.py",
[dependency-groups]
dev = [
"pyright>=1.1.409",
"pytest",
"pytest-cov",
"ruff>=0.8.0",
]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
docs = [
"mkdocs~=1.4.3",
"mkdocs-material~=9.1.17",
"mkdocs-minify-plugin~=0.5.0",
"mkdocs-git-revision-date-localized-plugin~=1.1.0",
"mkdocstrings-python~=1.1.2",
"mkdocs-redirects~=1.1.0",
"mkdocs-glightbox~=0.3.0",
"mike @ https://github.com/jimporter/mike/archive/392d57b8bb9d14bcedf2451a0dc302709f8055eb.zip",
"mkdocs-click~=0.8.0",
"pymdown-extensions~=10.0.1",
"pygments~=2.15.1",
"linkchecker @ git+https://github.com/linkchecker/linkchecker.git@d9265bb71c2054bf57b8c5734a4825d62505c779"
]

[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "RUF"]
ignore = ["RUF022"]
Loading
Loading