Skip to content

Commit

Permalink
Fixes for ruff 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Mar 4, 2024
1 parent da3c9f8 commit ef25132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/datatypes/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def get_split_commands_with_toc(

# These two variables act as an accumulator for consecutive entire blocks that
# can be copied verbatim (without decompressing)
start_chunk = int(-1)
end_chunk = int(-1)
start_chunk = -1
end_chunk = -1
copy_chunk_cmd = "dd bs=1 skip=%s count=%s if=%s 2> /dev/null >> %s"

while sequence_count > 0 and i < len(sections):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ skipsdist = True
[testenv]
commands =
first_startup: bash .ci/first_startup.sh
lint: ruff .
lint: ruff check .
# Once we are happy to replace flake8 with ruff, we can replace the next line with `black --check --diff`
# (since ruff delegates to black for checking/fixing many rules).
lint: bash .ci/flake8_wrapper.sh
Expand Down

0 comments on commit ef25132

Please sign in to comment.