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

Fix flake8 error #646

Merged
merged 1 commit into from
Jul 31, 2023
Merged

Fix flake8 error #646

merged 1 commit into from
Jul 31, 2023

Conversation

diohe0311
Copy link
Contributor

@diohe0311 diohe0311 commented Jul 31, 2023

Description

Flake8 has been updated over the weekend: https://pypi.org/project/flake8/#history.
As a result, some scripts in providers/base failed the Flake8 test.
I'm not sure if specifying the flake version to run the tests is a good solution. So I changed those scripts under providers/base/bin/ to pass flake8 tests.

Resolved issues

Documentation

Tests

Create this PR see if provider-base could pass tox test in py38 env

@diohe0311 diohe0311 changed the title fix flake8 error Fix flake8 error Jul 31, 2023
Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

+1, this is not equivalent but it seems to match the meaning that the code was trying to express, nice

@Hook25 Hook25 merged commit a8f891d into main Jul 31, 2023
6 checks passed
@Hook25 Hook25 deleted the fix-py38-flake8-errors branch July 31, 2023 07:11
diohe0311 added a commit that referenced this pull request Jul 31, 2023
This checks the type of variables via isinstance instead of type ==, allowing for inheritance and making tox happy
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.

2 participants