Skip to content

Commit 620b799

Browse files
committed
Migrate to uv
1 parent 701b643 commit 620b799

File tree

8 files changed

+473
-107
lines changed

8 files changed

+473
-107
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "pip"
3+
- package-ecosystem: "uv"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77

88
- package-ecosystem: "github-actions"
99
directory: "/"
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,6 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161+
162+
# Ruff:
163+
.ruff_cache/

.pre-commit-config.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
repos:
2-
- repo: https://github.com/pycqa/isort
3-
rev: 5.13.2
4-
hooks:
5-
- id: isort
6-
7-
- repo: https://github.com/psf/black-pre-commit-mirror
8-
rev: 24.10.0
9-
hooks:
10-
- id: black
11-
122
- repo: https://github.com/pre-commit/pre-commit-hooks
133
rev: v5.0.0
144
hooks:
@@ -19,19 +9,18 @@ repos:
199
- id: trailing-whitespace
2010

2111
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.7.4
12+
rev: v0.11.4
2313
hooks:
2414
- id: ruff
15+
args: [ --fix ]
2516
- id: ruff-format
2617

27-
- repo: local
18+
- repo: https://github.com/tox-dev/pyproject-fmt
19+
rev: v2.5.1
2820
hooks:
29-
- id: pytest
30-
name: Run pytest
31-
entry: make test
32-
language: system
33-
pass_filenames: false
34-
always_run: true
21+
- id: pyproject-fmt
3522

36-
ci:
37-
skip: [pytest]
23+
- repo: https://github.com/abravalheri/validate-pyproject
24+
rev: v0.24.1
25+
hooks:
26+
- id: validate-pyproject

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
[tool.isort]
2-
profile = "black"
1+
[project]
2+
name = "programapi"
3+
version = "2025.4.5"
4+
description = "Programme API for EuroPython"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
classifiers = [
8+
"Programming Language :: Python :: 3 :: Only",
9+
"Programming Language :: Python :: 3.12",
10+
"Programming Language :: Python :: 3.13",
11+
]
12+
dependencies = [
13+
"pydantic>=2.11.2",
14+
"python-dotenv>=1.1",
15+
"python-slugify>=8.0.4",
16+
"requests>=2.32.3",
17+
"tqdm>=4.67.1",
18+
]
19+
20+
[dependency-groups]
21+
dev = [
22+
"pre-commit>=4.2",
23+
"pytest>=8.3.5",
24+
"ruff>=0.11.4",
25+
]
26+
27+
[tool.ruff]
28+
lint.select = [ "I" ]

requirements.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 72 deletions
This file was deleted.

uv.lock

Lines changed: 430 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)