Skip to content

Commit

Permalink
Merge pull request #837 from ROCm/dependabot/pip/ruff-0.5.0
Browse files Browse the repository at this point in the history
build: bump ruff from 0.4.10 to 0.5.0
  • Loading branch information
samjwu authored Jun 27, 2024
2 parents a19a725 + 5112931 commit ce10232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ isort +files="src tests docs": (_isort "" files)
check-isort +files="src tests docs": (_isort "--check" files)

_ruff extra_args +files:
{{ruff_exe}} --config pyproject.toml {{extra_args}} {{files}}
{{ruff_exe}} check --config pyproject.toml {{extra_args}} {{files}}

# Run ruff to lint files
ruff +files="src tests": (_ruff "" files)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ requests==2.32.3
# via
# pygithub
# sphinx
ruff==0.4.10
ruff==0.5.0
# via rocm-docs-core (pyproject.toml)
six==1.16.0
# via python-dateutil
Expand Down
4 changes: 1 addition & 3 deletions src/rocm_docs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ def is_visible(element):
return False
if isinstance(element, bs4.element.Comment):
return False
if element.string == "\n":
return False
return True
return element.string != "\n"

words_per_minute = 200
average_word_length = 5
Expand Down

0 comments on commit ce10232

Please sign in to comment.