File tree Expand file tree Collapse file tree 10 files changed +485
-119
lines changed Expand file tree Collapse file tree 10 files changed +485
-119
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
updates :
3
- - package-ecosystem : " pip "
3
+ - package-ecosystem : " uv "
4
4
directory : " /"
5
5
schedule :
6
- interval : " weekly "
6
+ interval : " monthly "
7
7
8
8
- package-ecosystem : " github-actions"
9
9
directory : " /"
10
10
schedule :
11
- interval : " weekly "
11
+ interval : " monthly "
Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ jobs:
15
15
- name : Set up Python 3
16
16
uses : actions/setup-python@v5
17
17
with :
18
- python-version : ' 3.x'
19
- cache : " pip"
18
+ python-version : ' 3.13'
20
19
21
- - name : Install dependencies
22
- run : make deps/pre install
20
+ - name : Setup uv
21
+ uses : astral-sh/setup-uv@v5
22
+
23
+ - name : Install dependencies from uv.lock
24
+ run : make deps/install
23
25
24
26
- name : Run pytest
25
27
run : make test
Original file line number Diff line number Diff line change @@ -158,3 +158,6 @@ cython_debug/
158
158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159
159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
160
# .idea/
161
+
162
+ # Ruff:
163
+ .ruff_cache /
Original file line number Diff line number Diff line change 1
1
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
-
12
2
- repo : https://github.com/pre-commit/pre-commit-hooks
13
3
rev : v5.0.0
14
4
hooks :
@@ -19,19 +9,18 @@ repos:
19
9
- id : trailing-whitespace
20
10
21
11
- repo : https://github.com/astral-sh/ruff-pre-commit
22
- rev : v0.7 .4
12
+ rev : v0.11 .4
23
13
hooks :
24
14
- id : ruff
15
+ args : [ --fix ]
25
16
- id : ruff-format
26
17
27
- - repo : local
18
+ - repo : https://github.com/tox-dev/pyproject-fmt
19
+ rev : v2.5.1
28
20
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
35
22
36
- ci :
37
- skip : [pytest]
23
+ - repo : https://github.com/abravalheri/validate-pyproject
24
+ rev : v0.24.1
25
+ hooks :
26
+ - id : validate-pyproject
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ dev :
2
+ uv sync --dev
1
3
2
- deps/pre :
3
- pip install pip-tools
4
-
5
- deps/compile :
6
- pip-compile
4
+ deps/upgrade :
5
+ uv lock --upgrade
7
6
8
7
deps/install :
9
- pip- sync
8
+ uv sync
10
9
11
10
install : deps/install
12
11
@@ -23,11 +22,10 @@ endif
23
22
all : download transform
24
23
25
24
test :
26
- PYTHONPATH= " src " pytest
25
+ uv run pytest
27
26
28
27
pre-commit :
29
28
pre-commit install
30
- pre-commit run --all-files
31
29
32
30
clean :
33
31
git clean -xdf
Original file line number Diff line number Diff line change 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" ]
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments