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

Switching to Ruff for formatting and linting #847

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Switching to Ruff for formatting and linting #847

merged 4 commits into from
Nov 19, 2024

Conversation

benc-db
Copy link
Collaborator

@benc-db benc-db commented Nov 19, 2024

Description

Flake8 is ancient, and Ruff can replace black and flake8, plus has future linter expansion opportunities. For this PR, there are a few files that are modified by running Ruff format, but I'm keeping significant format cleanup to a separate PR. Getting rid of pre-commit until I've finished redoing the linting to run everything through Ruff.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@@ -1,3 +1,5 @@
ruff

black~=24.3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove old formatters here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch.

@benc-db benc-db merged commit 1b40c2b into main Nov 19, 2024
18 of 21 checks passed
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