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

Update Python unittests and apply Python standard #394

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

sschulz92
Copy link
Contributor

While investigating into "Add support to skip scenarios on runtime" I stumbled about several smaller code-smells reported by Pylance. Boy-scout-rule-wise I would like to contribute them as part of this PR.

Out of curiosity: Is there a guideline which Python versions are supported? Could not find relevant information in the Gauge docs.

@chadlwilson
Copy link
Contributor

Automated tests are run against newest Python point release and the oldest supported Python point release, so 3.9 and 3.12 at time of writing. Logic being that the versions in between should also work.

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.9, 3.12]

But that doesn't mean that all possible features are supported, as you are aware of from #324 and #233 since the library is dependent on third party dependencies and is not tested with all possible Python language features that might need to be parsed :-/

There is https://github.com/getgauge/gauge-python/blob/master/tox.ini however I don't think this is used anywhere on the current build since being moved to GHA.

@chadlwilson chadlwilson enabled auto-merge (squash) October 1, 2024 05:53
@chadlwilson chadlwilson merged commit 97093f6 into getgauge:master Oct 1, 2024
15 checks passed
@sschulz92 sschulz92 deleted the UPDATE_PY_TESTS branch October 1, 2024 06:29
sschulz92 added a commit to sschulz92/gauge-python that referenced this pull request Oct 1, 2024
Signed-off-by: sschulz92 <[email protected]>
Co-authored-by: Chad Wilson <[email protected]>
Signed-off-by: sschulz92 <[email protected]>
sschulz92 added a commit to sschulz92/gauge-python that referenced this pull request Oct 1, 2024
Signed-off-by: sschulz92 <[email protected]>
Co-authored-by: Chad Wilson <[email protected]>
Signed-off-by: sschulz92 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants