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

Add ruff for linting, remove flake8, remove isort, remove pylint #303

Merged
merged 3 commits into from
May 30, 2024

Conversation

gsheni
Copy link
Contributor

@gsheni gsheni commented May 28, 2024

CU-86azg1jc5

@gsheni gsheni requested a review from a team as a code owner May 28, 2024 14:04
@gsheni gsheni requested review from rwedge and removed request for a team May 28, 2024 14:04
@gsheni gsheni removed the request for review from rwedge May 28, 2024 14:04
@gsheni gsheni requested a review from amontanez24 May 28, 2024 14:04
@sdv-team
Copy link
Contributor

Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

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

Why does the PR description say it closes this issue: sdv-dev/SDMetrics#268

@gsheni gsheni requested a review from amontanez24 May 28, 2024 23:40
@gsheni
Copy link
Contributor Author

gsheni commented May 28, 2024

@amontanez24 fixed

pyproject.toml Outdated
line-length = 100
indent-width = 4
src = ["sdgym"]
target-version = "py312"
Copy link
Contributor

Choose a reason for hiding this comment

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

The documentation says that this should be the minimum version. Should we change to 3.8?

Copy link
Contributor Author

@gsheni gsheni May 30, 2024

Choose a reason for hiding this comment

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

Good point. Given that ruff says to use requires-python, I just ended up removing it: bbdf138

If you're already using a pyproject.toml file, we recommend project.requires-python instead, as it's based on Python packaging standards, and will be respected by other tools.

@gsheni gsheni requested a review from amontanez24 May 30, 2024 14:04
@gsheni gsheni merged commit 38cdd51 into main May 30, 2024
47 checks passed
@gsheni gsheni deleted the add_ruff branch May 30, 2024 16:15
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.

Switch to using ruff for Python linting and code formatting
3 participants