Skip to content

Commit

Permalink
Use ruff check because ruff suggests it (#33)
Browse files Browse the repository at this point in the history
* Use ruff --check because ruff suggests it

* lint
  • Loading branch information
hmaarrfk authored Jul 21, 2024
1 parent eb14d38 commit 9d37dab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
set -ex
ruff format --check .
ruff .
ruff check .
lint-wheel:
name: Check Wheel
Expand Down Expand Up @@ -168,4 +168,4 @@ jobs:
files: 'dist/*.tar.gz;dist/*.whl'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 3 additions & 1 deletion wgpu_shadertoy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def shader_args_from_json(dict_or_path, **kwargs) -> dict:
for r_pass in shader_data["Shader"]["renderpass"]:
if r_pass["type"] == "image":
main_image_code = r_pass["code"]
if r_pass["inputs"] is not []:
# Check that r_pass["inputs"] is not empty
# before processing it
if r_pass["inputs"]:
inputs, inputs_complete = _download_media_channels(
r_pass["inputs"], use_cache=use_cache
)
Expand Down

0 comments on commit 9d37dab

Please sign in to comment.