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

Adds support for OSC hyperlink sequences. #131

Merged
merged 4 commits into from
Sep 3, 2021

Conversation

hakonhagland
Copy link
Collaborator

Fixes #130 : adds support for OSC hyperlink sequences.

yield part
else:
if ((sys.version_info.major == 3 and sys.version_info.minor >= 3)
or sys.version_info.major > 3):
Copy link
Member

Choose a reason for hiding this comment

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

This makes no sense because we already require py36+, please remove variant for relic-pythons.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the comment, I have removed the check in a new commit.

@ssbarnea ssbarnea changed the title Fixes issue #130 Adds support for OSC hyperlink sequences. Sep 1, 2021
@ssbarnea
Copy link
Member

ssbarnea commented Sep 1, 2021

@hakonhagland Linting is failing. I also sent you an invite https://github.com/pycontribs/ansi2html/invitations so you will not have to wait for me to approve CI executions.

PS. I could really use some help with #135

Adds support for OSC hyperlink sequences.
Since the module requires python 3.6 and "yield from" was introduced in
3.3, there is no need for this check.
pylint throws R1705: Unnecessary "else" after "return" (no-else-return).
@hakonhagland
Copy link
Collaborator Author

Linting is failing.

@ssbarnea I added a new commit to fix this.

I also sent you an invite https://github.com/pycontribs/ansi2html/invitations so you will not have to wait for me to approve CI executions.

Thanks! I have accepted the invite. I am quite new to Python, so I will use this as a learning experience.

PS. I could really use some help with #135

I will try to help but I am not familiar with all the testing and GitHub actions yet.. Is there anything in particular I should look at?

@hakonhagland
Copy link
Collaborator Author

Any idea why the linter is failing now?
The log file does not give much:

ERROR: InvocationError for command /home/runner/work/ansi2html/ansi2html/.tox/lint/bin/python -m pre_commit run --all (exited with code 1)

@ssbarnea
Copy link
Member

ssbarnea commented Sep 2, 2021

@hakonhagland Yes. Just run "tox -e lint" locally and include the modified files in your change. black is reformatting the code so you do not have to think about how to follow the style guide too much.

Ran "tox -e lint" and committed the changes it did.
@ssbarnea ssbarnea merged commit d5d9555 into pycontribs:main Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for OSC hyperlink sequence
2 participants