Skip to content

Commit b70df5c

Browse files
committed
update linters
1 parent 8fc4e45 commit b70df5c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fast_version/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44

55
__all__ = [
6-
"init_fastapi_versioning",
76
"VersionedAPIRouter",
7+
"init_fastapi_versioning",
88
]

fast_version/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def dict_merge(dict1: dict[str, typing.Any], dict2: dict[str, typing.Any]) -> None:
7-
for key in dict2:
7+
for key in dict2.keys():
88
if key in dict1:
99
if isinstance(dict1[key], dict) and isinstance(dict2[key], dict):
1010
dict_merge(dict1[key], dict2[key])

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ ignore = [
5858
"S101", # allow asserts
5959
"TCH", # ignore flake8-type-checking
6060
"FBT", # allow boolean args
61-
"ANN101", # missing-type-self
6261
"D203", # "one-blank-line-before-class" conflicting with D211
6362
"D213", # "multi-line-summary-second-line" conflicting with D212
6463
"COM812", # flake8-commas "Trailing comma missing"
6564
"ISC001", # flake8-implicit-str-concat
65+
"SIM118", # allow `key in dict.keys()`
66+
"PLC0206", # Extracting value from dictionary without calling `.items()`
6667
]
6768
isort.lines-after-imports = 2
6869
isort.no-lines-before = ["standard-library", "local-folder"]

0 commit comments

Comments
 (0)