Skip to content

Commit 38ec979

Browse files
authored
Merge pull request #2 from rawheel/libraries-updates
Libraries updates and pre-commit hooks
2 parents a4353ef + 5f57187 commit 38ec979

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,4 @@ dmypy.json
131131

132132
# Pyre type checker
133133
.pyre/
134+
poetry.lock

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: double-quote-string-fixer
9+
- id: check-added-large-files
10+
- id: debug-statements
11+
- repo: https://github.com/asottile/reorder_python_imports
12+
rev: v3.9.0
13+
hooks:
14+
- id: reorder-python-imports
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.0.270
17+
hooks:
18+
- id: ruff
19+
args:
20+
- --fix
21+
- --exit-non-zero-on-fix

pyproject.toml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ authors = ["Raheel Siddiqui"]
66

77
[tool.poetry.dependencies]
88
python = "^3.8"
9-
fastapi = "^0.85.0"
9+
fastapi = "^0.97.0"
1010
FastAPI-SQLAlchemy = "^0.2.1"
11-
orjson = "^3.8.0"
12-
pydantic = "^1.10.2"
13-
python-dotenv = "^0.21.0"
14-
requests = "^2.28.1"
15-
SQLAlchemy = "^1.4.41"
11+
orjson = "^3.9.1"
12+
pydantic = "^1.10.9"
13+
python-dotenv = "^0.21.1"
14+
requests = "^2.31.0"
15+
SQLAlchemy = "^2.0.16"
1616
uvicorn = "^0.18.3"
17-
black = "^22.8.0"
18-
alembic = "^1.8.1"
19-
pytest = "^7.1.3"
17+
black = "^23.3.0"
18+
alembic = "^1.11.1"
19+
pytest = "^7.3.2"
2020
unittest2 = "^1.1.0"
21-
psycopg2 = "^2.9.3"
22-
loguru = "^0.6.0"
23-
tenacity = "^8.0.1"
21+
loguru = "^0.7.0"
22+
tenacity = "^8.2.2"
23+
psycopg = "^3.1.9"
24+
pre-commit = "^3.3.3"

0 commit comments

Comments
 (0)