Skip to content

Commit 8f4b383

Browse files
authored
Merge pull request #72 from ghazi-git/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 8e224be + 9e7246e commit 8f4b383

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: '^docs/|\.tox|\.git|venv|^dist'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v4.6.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -16,13 +16,13 @@ repos:
1616
types_or: [ python, pyi, markdown, rst ]
1717

1818
- repo: https://github.com/PyCQA/flake8
19-
rev: 7.0.0
19+
rev: 7.1.0
2020
hooks:
2121
- id: flake8
2222
args: [ --max-line-length, '120' , --ignore, 'E,W']
2323

2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.9.0
25+
rev: v1.10.0
2626
hooks:
2727
- id: mypy
2828
args: [ --ignore-missing-imports, --check-untyped-defs, --disallow-incomplete-defs ]

drf_standardized_errors/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def user_settings(self) -> Dict[str, Any]:
3232

3333
def __getattr__(self, attr: str) -> Any:
3434
if attr not in self.defaults:
35-
raise AttributeError("Invalid API setting: '%s'" % attr)
35+
raise AttributeError(f"Invalid API setting: '{attr}'")
3636

3737
try:
3838
# Check if present in user settings

0 commit comments

Comments
 (0)