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

first setup of ruff for python linting #1158

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Conversation

marijncv
Copy link
Contributor

Description

This PR sets up ruff for python linting. It also enables isort from within ruff and removes the standalone isort.

Related Issue(s)

closes #1149

Signed-off-by: Marijn Valk <marijncv@hotmail.com>
@github-actions github-actions bot added binding/python Issues for the Python package documentation Improvements or additions to documentation labels Feb 18, 2023
wjones127
wjones127 previously approved these changes Feb 22, 2023
Copy link
Collaborator

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

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

This looks great. Was easy to get working locally for me.

Before I can merge, could you fix the conflicts in the test file?

python/deltalake/schema.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

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

Thanks! I had one comment around catching BaseException vs. Exception, but overlall looks great!

python/tests/conftest.py Outdated Show resolved Hide resolved
Signed-off-by: Marijn Valk <marijncv@hotmail.com>
Signed-off-by: Marijn Valk <marijncv@hotmail.com>
@marijncv
Copy link
Contributor Author

Thanks for the pointers @roeap & @wjones127!

@wjones127 wjones127 requested a review from roeap February 22, 2023 15:38
@wjones127 wjones127 enabled auto-merge (squash) February 22, 2023 15:38
@wjones127 wjones127 merged commit bf0950a into delta-io:main Feb 22, 2023
chitralverma pushed a commit to chitralverma/delta-rs that referenced this pull request Mar 17, 2023
# Description
This PR sets up ruff for python linting. It also enables isort from
within ruff and removes the standalone isort.

# Related Issue(s)
closes delta-io#1149

---------

Signed-off-by: Marijn Valk <marijncv@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt ruff for python linting in CI/CD
3 participants