Skip to content

Commit

Permalink
A few ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Aug 16, 2023
1 parent ea078c3 commit 83f69bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ unfixable = [
"F602", # automatic fix might obscure issue
"B018", # automatic fix might obscure issue
]
per-file-ignores = {"tests/*.py" = ["D"]}

[tool.ruff.per-file-ignores]
"tests/*.py" = [
"D", # Don't need docstrings in test methods
"E721" # Asserting exact types is desirable in tests; E721 doesn't make sense
]

[tool.ruff.pydocstyle]
convention = "google"
Expand Down
2 changes: 1 addition & 1 deletion src/typeshed_stats/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def format_package(package_stats: PackageInfo) -> str:
del kwargs["stubtest_settings"]

kwargs = {
key: (f"{val:,}" if type(val) is int else val)
key: (f"{val:,}" if isinstance(val, int) else val)
for key, val in kwargs.items()
}

Expand Down

0 comments on commit 83f69bc

Please sign in to comment.