Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.0.285 to 0.0.286 (#395)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump ruff from 0.0.285 to 0.0.286

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.285 to 0.0.286.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](astral-sh/ruff@v0.0.285...v0.0.286)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix ruff failures

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joey Vagedes <[email protected]>
  • Loading branch information
dependabot[bot] and Javagedes authored Aug 28, 2023
1 parent 10d588a commit 7829592
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion edk2toollib/uefi/edk2/parsers/buildreport_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def BasicParse(self):
# we do it after parsing region because we
# can limit scope to 0 - first start
#
for n in range(0, self._Regions[0][1]): # loop thru from 0 to start of first region
for n in range(self._Regions[0][1]): # loop thru from 0 to start of first region
line = self._ReportContents[n].strip()
line_partitioned = line.partition(':')
if (line_partitioned[2] == ""):
Expand Down
2 changes: 1 addition & 1 deletion edk2toollib/uefi/edk2/parsers/dsc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __ProcessMore(self, lines, file_name=None):
"""
if (len(lines) == 0):
return
for index in range(0, len(lines)):
for index in range(len(lines)):
# we try here so that we can catch exceptions from individual lines
try:
raw_line = lines[index]
Expand Down
2 changes: 1 addition & 1 deletion edk2toollib/uefi/edk2/parsers/override_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_override_lines(parse_contents):
parse_lines = parse_contents.split('\n')
result = []

for i in range(0, len(parse_lines)):
for i in range(len(parse_lines)):
if parse_lines[i].strip().upper().startswith("#OVERRIDE"):
result.append({'lineno': i + 1, 'line': parse_lines[i].strip()})

Expand Down
4 changes: 2 additions & 2 deletions edk2toollib/uefi/fmp_capsule_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def Decode(self, Buffer):
# Parse the ItemOffsetList values
#
Offset = self._StructSize
for Index in range(0, EmbeddedDriverCount + PayloadItemCount):
for Index in range(EmbeddedDriverCount + PayloadItemCount):
ItemOffset = struct.unpack(self._ItemOffsetFormat, Buffer[Offset:Offset + self._ItemOffsetSize])[0]
if ItemOffset >= len(Buffer):
raise ValueError
Expand All @@ -285,7 +285,7 @@ def Decode(self, Buffer):
#
# Parse the EmbeddedDrivers
#
for Index in range(0, EmbeddedDriverCount):
for Index in range(EmbeddedDriverCount):
Offset = offset_list[Index]
if Index < (len(offset_list) - 1):
Length = offset_list[Index + 1] - Offset
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ issues = "https://github.com/tianocore/edk2-pytool-library/issues/"

[project.optional-dependencies]
dev = [
"ruff == 0.0.285",
"ruff == 0.0.286",
"pytest == 7.4.0",
"coverage == 7.3.0",
"pre-commit == 3.3.3",
Expand Down

0 comments on commit 7829592

Please sign in to comment.