Skip to content

Commit f50db05

Browse files
committed
Fix CI and tooling
1 parent 10e0c7d commit f50db05

3 files changed

Lines changed: 227 additions & 388 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,16 @@ jobs:
1313
with:
1414
python-version: 3.12.0
1515

16-
- name: Install UV and dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
python -m pip install uv==0.5.7
20-
uv pip install -e '.[dev,test]' --system
21-
22-
- name: Format code
23-
run: |
24-
ruff format
16+
- name: Install UV
17+
uses: astral-sh/setup-uv@v6
18+
with:
19+
version: "0.8.3"
2520

26-
- name: Lint code
27-
run: |
28-
ruff check --exit-non-zero-on-fix
29-
slotscheck src
30-
mypy
21+
- name: Install project editable with extras
22+
run: uv pip install -e '.[dev,test]' --system
3123

32-
- name: Test code
33-
run: |
34-
pytest -v
24+
- name: Check code
25+
run: make code.check
3526

3627
- name: Test Docker Compose setup
3728
run: |

pyproject.toml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools >= 80.0.0"]
2+
requires = ["setuptools == 80.0.0"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools]
@@ -17,36 +17,36 @@ license = "MIT"
1717
authors = [
1818
{ name = "Ivan Borovets", email = "[email protected]" },
1919
]
20-
requires-python = ">=3.12.0"
20+
requires-python = "==3.12.*"
2121
dependencies = [
22-
"alembic>=1.16.1",
23-
"alembic-postgresql-enum>=1.7.0",
24-
"bcrypt>=4.3.0",
25-
"dishka>=1.6.0",
26-
"fastapi>=0.115.12",
27-
"orjson>=3.10.18",
28-
"psycopg[binary]>=3.2.9",
29-
"pydantic[email]>=2.11.4",
30-
"pyjwt[crypto]>=2.10.1",
31-
"rtoml>=0.12.0",
32-
"sqlalchemy[mypy]>=2.0.41",
33-
"uuid6>=2024.7.10",
34-
"uvicorn>=0.34.2",
35-
"uvloop>=0.21.0",
22+
"alembic==1.16.4",
23+
"alembic-postgresql-enum==1.8.0",
24+
"bcrypt==4.3.0",
25+
"dishka==1.6.0",
26+
"fastapi==0.116.1",
27+
"orjson==3.11.0",
28+
"psycopg[binary]==3.2.9",
29+
"pydantic[email]==2.11.7",
30+
"pyjwt[crypto]==2.10.1",
31+
"rtoml==0.12.0",
32+
"sqlalchemy[mypy]==2.0.41",
33+
"uuid6==2025.0.1",
34+
"uvicorn==0.35.0",
35+
"uvloop==0.21.0",
3636
]
3737

3838
[project.optional-dependencies]
3939
dev = [
40-
"mypy>=1.15.0",
41-
"pre-commit>=4.2.0",
42-
"ruff>=0.11.10",
43-
"slotscheck>=0.19.1",
40+
"mypy==1.17.0",
41+
"pre-commit==4.2.0",
42+
"ruff==0.12.5",
43+
"slotscheck==0.19.1",
4444
]
4545
test = [
46-
"coverage>=7.8.1",
47-
"line-profiler>=4.2.0",
48-
"pytest>=8.3.5",
49-
"pytest-asyncio>=0.26.0"
46+
"coverage==7.10.0",
47+
"line-profiler==5.0.0",
48+
"pytest==8.4.1",
49+
"pytest-asyncio==1.1.0"
5050
]
5151

5252
[tool.mypy]

0 commit comments

Comments
 (0)