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

Fix python snippets linter issues - #955

Merged
jefflinwood merged 11 commits into
change-travis-to-GH-actionsfrom
fix-python-snippets
Jan 6, 2022
Merged

Fix python snippets linter issues#955
jefflinwood merged 11 commits into
change-travis-to-GH-actionsfrom
fix-python-snippets

Conversation

@alexisbcc

@alexisbcc alexisbcc commented Dec 10, 2021

Copy link
Copy Markdown
Contributor

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
.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.recording_rules \
.update(rules=[{"type": "include", "all": true}])
.update(rules=[{"type": "include", "all": True}])

Copy link
Copy Markdown
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.

.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.recording_rules \
.update(rules=[{"type": "exclude", "all": true}])
.update(rules=[{"type": "exclude", "all": True}])

Copy link
Copy Markdown
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

@fefi95 fefi95 left a comment

Copy link
Copy Markdown

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