Skip to content

Commit

Permalink
Merge pull request #5839 from rhinstaller/dependabot/pip/dockerfile/r…
Browse files Browse the repository at this point in the history
…uff-0.6.1

infra: bump ruff from 0.5.7 to 0.6.1 in /dockerfile
  • Loading branch information
KKoukiou authored Aug 21, 2024
2 parents 9ef1a54 + 8721cb5 commit f7c1d3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dockerfile/anaconda-ci/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pylint == 3.2.6
astroid == 3.2.4

# ruff for fast linting
ruff == 0.5.7
ruff == 0.6.1

# vulture for dead code analysis
vulture == 2.11
7 changes: 2 additions & 5 deletions pyanaconda/modules/common/task/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ def report_progress(self, message, step_number=None, step_size=None):
if step_size is not None:
step += step_size

if step < current_step:
step = current_step

if step > max_step:
step = max_step
step = max(step, current_step)
step = min(step, max_step)

self.__progress_step = step
self.__progress_msg = message
Expand Down
3 changes: 1 addition & 2 deletions pyanaconda/ui/gui/spokes/lib/installation_source_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ def _check_iso_stdout_watcher(self, fd, condition):
return True

pct = float(line)/100
if pct > 1.0:
pct = 1.0
pct = min(pct, 1.0)

self.progress_bar.set_fraction(pct)
return True
Expand Down

0 comments on commit f7c1d3a

Please sign in to comment.