Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4bad21

Browse files
committed
feat(fastapi_module_loader): ✨ Project setup updates
1 parent a5c476b commit c4bad21

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: check-added-large-files
77
- id: check-merge-conflict
88
- id: check-docstring-first
99
- id: debug-statements
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.12.2
11+
rev: v0.13.3
1212
hooks:
1313
- id: ruff
1414
args: [--fix, --exit-non-zero-on-fix]
1515
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
16-
rev: v9.22.0
16+
rev: v9.23.0
1717
hooks:
1818
- id: commitlint
1919
stages: [commit-msg]

fastapi_module_loader/loader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import importlib
2-
from typing import Optional
32

43
from fastapi_module_loader.exceptions import ImproperlyConfiguredModules
54
from fastapi_module_loader.module import BaseModule
@@ -10,7 +9,7 @@ class ModuleLoader:
109
Loads `ModuleConfig` instances.
1110
"""
1211

13-
modules: dict[str, Optional[BaseModule]]
12+
modules: dict[str, BaseModule | None]
1413
is_loaded: bool = False
1514
is_setup: bool = False
1615

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Repository = "https://github.com/team23/fastapi-module-loading"
1515

1616
[dependency-groups]
1717
dev = [
18-
"pytest>=7.1.2,<9.0.0",
19-
"pytest-cov>=3,<8",
20-
"tox>=3.26,<5.0",
21-
"httpx>=0.24.1,<1.0.0",
22-
"ruff>=0.5.0,<0.14.0",
23-
"pyright>=1.1.350,<1.2",
18+
"pytest>=8.4.2,<9.0.0",
19+
"pytest-cov>=7.0.0,<8",
20+
"tox>=4.30.3,<5.0",
21+
"httpx>=0.28.1,<1.0.0",
22+
"ruff>=0.13.3,<0.14.0",
23+
"pyright>=1.1.406,<1.2",
2424
]
2525

2626
[tool.ruff]

0 commit comments

Comments
 (0)