Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ruff --check because ruff suggests it #33

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading