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
2 changes: 1 addition & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: astral-sh/setup-uv@v7
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/releasing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
check:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Check tag version
Expand All @@ -16,7 +16,7 @@ jobs:

build:
needs: check
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: astral-sh/setup-uv@v1
Expand All @@ -41,7 +41,7 @@ jobs:

release:
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
Expand All @@ -63,7 +63,7 @@ jobs:
environment:
name: pypi
url: https://pypi.org/project/unbeheader/
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
Expand Down
3 changes: 2 additions & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3.14
3.13
3.12
3.11
3.10
3.9
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Switched project packaging and workflows from Poetry to uv.
- Added support for `.mjs` files.
- Dropped support for end-of-life Python 3.9.

## v1.4.0

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ uv python install # reads from .python-version
Install the project with its dependencies:

```sh
uv sync --extra dev
uv sync
```

The `dev` extra contains the tooling needed for linting, typing, and tests; omit `--extra dev` if you only need the runtime CLI.

Once installed, you can invoke the `unbehead` command with:

```sh
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.5.0-dev"
description = "Never fail to maintain your file headers"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [
{ name = "Adrian Moennich", email = "adrian.moennich@cern.ch" },
{ name = "Alejandro Avilés", email = "ome@unconventional.dev" }
Expand Down
6 changes: 3 additions & 3 deletions src/unbeheader/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from re import Pattern
from typing import Any
from typing import NamedTuple
from typing import TypeAlias

# TODO: Use explicit TypeAlias when Python 3.9 is dropped
ConfigDict = dict[str, Any]
PathCache = dict[Path, bool]
ConfigDict: TypeAlias = dict[str, Any]
PathCache: TypeAlias = dict[Path, bool]


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{39,310,311,312}
envlist = py{310,311,312,313,314}
no_package = true

[testenv]
Expand Down
367 changes: 30 additions & 337 deletions uv.lock

Large diffs are not rendered by default.