Skip to content

Commit

Permalink
Merge branch 'ershi/ruff-0.5.0' into 'main'
Browse files Browse the repository at this point in the history
Upgrade Ruff to 0.5.0

See merge request omniverse/warp!597
  • Loading branch information
shi-eric committed Jul 2, 2024
2 parents 15ab93a + 903d87a commit 00c08c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ ruff lint:
- .runner-utility-linux-x86_64
before_script:
- python -m pip install --upgrade pip
- pip install ruff==0.3.7
- pip install --upgrade ruff==0.5.0
script:
- ruff check --show-source --exit-zero # Just to get something in the log
- ruff check --output-format full --exit-zero # Just to get something in the log
- ruff check --output-format gitlab > gl-code-quality-report.json
artifacts:
reports:
Expand All @@ -138,7 +138,7 @@ ruff format:
- .runner-utility-linux-x86_64
before_script:
- python -m pip install --upgrade pip
- pip install ruff==0.3.7
- pip install --upgrade ruff==0.5.0
script:
- ruff format --diff

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.7
rev: v0.5.0
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ furo==2024.1.29
sphinx==7.2.6
sphinx_copybutton==0.5.2
numpy==1.26.4
ruff==0.3.7
ruff==0.5.0
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ ignore = [
"F403", # Allow wildcard imports
"F405", # Related to use of wildcard imports
"F811", # Warp often uses overloads
"E721", # Warp often uses == in float and int type comparisons
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit 00c08c2

Please sign in to comment.