Skip to content

Commit 85e9f39

Browse files
committed
use uv instead of poetry. update pyproject.toml
1 parent d49a741 commit 85e9f39

File tree

6 files changed

+1296
-1926
lines changed

6 files changed

+1296
-1926
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
.vscode
2+
.mypy_cache
3+
.pytest_cache
4+
.ruff_cache

.pre-commit-config.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,37 @@ default_language_version:
22
python: python3.12
33

44
repos:
5+
# general checks (see here: https://pre-commit.com/hooks.html
56
- repo: https://github.com/pre-commit/pre-commit-hooks
67
rev: v4.6.0
78
hooks:
8-
- id: check-added-large-files
9-
- id: check-toml
109
- id: check-yaml
1110
args: [--allow-multiple-documents]
1211
- id: end-of-file-fixer
1312
- id: trailing-whitespace
1413

14+
# black - formatting
1515
- repo: https://github.com/psf/black
16-
rev: 24.8.0
16+
rev: 25.1.0
1717
hooks:
1818
- id: black
1919
name: black
2020
args:
2121
- "--config"
2222
- "./backend/pyproject.toml"
2323

24+
# ruff - linting
2425
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.6.9
26+
rev: "v0.11.10"
2627
hooks:
27-
# Run the linter.
2828
- id: ruff
29-
# Run the formatter.
30-
- id: ruff-format
29+
name: ruff
3130

31+
# mypy - lint-like type checking
3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v1.11.2
33+
rev: v1.15.0
3434
hooks:
3535
- id: mypy
3636
name: mypy
37-
args:
38-
- "--config"
39-
- "./backend/pyproject.toml"
40-
- "--ignore-missing-imports"
37+
additional_dependencies: [types-requests==2.31.0.20240218]
38+
args: [--config-file=./backend/pyproject.toml, --ignore-missing-imports]

0 commit comments

Comments
 (0)