Skip to content

Commit

Permalink
Update workflows (#4575)
Browse files Browse the repository at this point in the history
* Update workflows

* Fix lint errors in type comparisons

---------

Co-authored-by: Dhruv Bhanushali <dhruv_b@live.com>
  • Loading branch information
openverse-bot and dhruvkb authored Jul 2, 2024
1 parent b9b3f6f commit ce17b47
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr_label_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- get_label_groups
steps:
- name: Check aspect label
uses: docker://agilepathway/pull-request-label-checker:v1.6.32
uses: docker://agilepathway/pull-request-label-checker:v1.6.44
with:
any_of: ${{ needs.get_label_groups.outputs.aspect }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,7 +55,7 @@ jobs:
- get_label_groups
steps:
- name: Check goal label
uses: docker://agilepathway/pull-request-label-checker:v1.6.32
uses: docker://agilepathway/pull-request-label-checker:v1.6.44
with:
one_of: ${{ needs.get_label_groups.outputs.goal }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -68,7 +68,7 @@ jobs:
- get_label_groups
steps:
- name: Check priority label
uses: docker://agilepathway/pull-request-label-checker:v1.6.32
uses: docker://agilepathway/pull-request-label-checker:v1.6.44
with:
one_of: ${{ needs.get_label_groups.outputs.priority }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -81,7 +81,7 @@ jobs:
- get_label_groups
steps:
- name: Check stack label
uses: docker://agilepathway/pull-request-label-checker:v1.6.32
uses: docker://agilepathway/pull-request-label-checker:v1.6.44
with:
any_of: ${{ needs.get_label_groups.outputs.stack }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
sudo chown -R runneradmin:root /tmp/renovate/
ls -R "$cache_dir"
- uses: renovatebot/github-action@v40.1.11
- uses: renovatebot/github-action@v40.1.12
with:
configurationFile: .github/renovate.json
token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
- id: requirements-txt-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
rev: v0.5.0
hooks:
- id: ruff # replaces Flake8, isort, pydocstyle, pyupgrade
args:
Expand Down Expand Up @@ -155,7 +155,7 @@ repos:
files: (.vale/.*|.mdx?)$

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.384.0
rev: 37.421.5
hooks:
- id: renovate-config-validator
args:
Expand Down
4 changes: 2 additions & 2 deletions catalog/dags/common/storage/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _sanitize_json_values(self, value, recursion_limit=100):
return value
elif input_type not in [dict, list] or recursion_limit <= 0:
return self._Column__sanitize_string(value)
elif input_type == list:
elif input_type is list:
return [
self._sanitize_json_values(item, recursion_limit=recursion_limit - 1)
for item in value
Expand Down Expand Up @@ -637,7 +637,7 @@ def prepare_string(self, value):

if value is None:
return value
elif input_type != list:
elif input_type is not list:
arr_str = self.base_column.prepare_string(value)
return "{" + arr_str + "}" if arr_str else None

Expand Down

0 comments on commit ce17b47

Please sign in to comment.