Skip to content

Commit

Permalink
chore: Bump ruff to 0.3.4 (Azure-Samples#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdestin authored Mar 27, 2024
1 parent 0bd690b commit ae58d4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/commit-filesize-diff-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def num_bytes(arg: str) -> int:
"YB": 8,
}

shift = shift_values.get(suffix, None)
shift = shift_values.get(suffix)

if shift is None:
raise error
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ line-length = 120

[tool.ruff]
line-length = 120

[tool.ruff.lint]
extend-select = [
"B",
"C4",
Expand All @@ -18,7 +20,7 @@ extend-select = [
]


[tool.ruff.extend-per-file-ignores]
[tool.ruff.lint.extend-per-file-ignores]
"*.ipynb" = [
"PLE1142", # await-outside-async: Jupyter Notebooks support top level await
"E402", # module-import-not-at-top-of-file: It's relatively common to have to import "just in time"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ commands = black {posargs}

[testenv:ruff]
deps =
ruff ~= 0.0.292
ruff ~= 0.3.4
commands = ruff {posargs}

[testenv:nb-clean]
Expand Down

0 comments on commit ae58d4e

Please sign in to comment.