Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Fix python snippets linter issues #955

Merged
merged 11 commits into from
Jan 6, 2022

Conversation

alexisbcc
Copy link
Contributor

@alexisbcc alexisbcc commented Dec 10, 2021

This PR fixes the linter issues present in the new GH actions implementation for the python code snippets.

The new GH actions implementation is done here: #946

The tests errors are not being fixed in this PR only the linter errors.

Changes:

  • Add missin EOF in .github/setup/action.yml
  • Change GH actions rule to run for all PR's against any branch.
  • Restore missing method in python test runner tools/snippet-testing/language_handler/python.rb
  • Fix linter issues for python code snippets.

@alexisbcc alexisbcc changed the base branch from master to change-travis-to-GH-actions December 10, 2021 21:12
@alexisbcc alexisbcc changed the title Fix python snippets Fix python snippets linter issues Dec 13, 2021
@@ -12,6 +12,6 @@
recording_rules = client.video \
.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.recording_rules \
.update(rules=[{"type": "include", "all": true}])
.update(rules=[{"type": "include", "all": True}])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The required type is boolean, not string.

@@ -12,6 +12,6 @@
recording_rules = client.video \
.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.recording_rules \
.update(rules=[{"type": "exclude", "all": true}])
.update(rules=[{"type": "exclude", "all": True}])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The required type is boolean, not string.

@alexisbcc alexisbcc marked this pull request as ready for review December 13, 2021 19:56
Copy link

@fefi95 fefi95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jefflinwood jefflinwood merged commit 2c997b4 into change-travis-to-GH-actions Jan 6, 2022
@jefflinwood jefflinwood deleted the fix-python-snippets branch January 6, 2022 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants