Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gwax committed Mar 12, 2024
1 parent 9d4bb7c commit 85c3d70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mtg_ssm/serialization/xlsx.py
Expand Up @@ -137,8 +137,8 @@ def get_references(
set_to_haveref,
key=lambda setcode: _card_set_sort_key(index.setcode_to_set[setcode]),
):
reference = 'IF({count}>0,"{setcode}:"&{count},"")'.format(
setcode=card_set.upper(), count=set_to_haveref[card_set]
reference = (
f'IF({set_to_haveref[card_set]}>0,"{card_set.upper()}:"&{set_to_haveref[card_set]},"")'
)
references.append(reference)
if not references:
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Expand Up @@ -106,6 +106,8 @@ target-version = ["py38"]
[tool.ruff]
target-version = "py38"
line-length = 99

[tool.ruff.lint]
select = [
"F",
"E",
Expand Down Expand Up @@ -153,7 +155,7 @@ ignore = [
"T201", # `print` found; ignoring for now because I don't want to set up logging
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"D104", # missing docstring in public package
]
Expand All @@ -165,9 +167,9 @@ ignore = [
"S101", # tests should use assert
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["mtg_ssm"]

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 7
max-returns = 8

0 comments on commit 85c3d70

Please sign in to comment.