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

Ruff #45

Merged
merged 7 commits into from
Feb 9, 2024
Merged

Ruff #45

merged 7 commits into from
Feb 9, 2024

Conversation

Ivan-E-Johnson
Copy link
Contributor

Overview

Add ruff to the precommits and update the code base to be conformant with ruff

Implementation

  1. Added ruff to precommit hooks
  2. manually formated directories with ruff

Testing (Manual)

NA

Testing (Automated)

NA

Screenshots

@powersaudrey25
Copy link
Contributor

@Ivan-E-Johnson ruff removed the init.py files from the backend and doing that screwed up all the imports. I excluded a file with init from ruff. We now have one test failing, not sure why running ruff would cause a unit test to fail.

BUG: IM Stupid and made a mistake
BUG: adding import

BUG: updating imports for alembic

BUG: updating config import for alembic

Revert "BUG: adding import"

This reverts commit 5a158bc.

FIX: merge conflict

Revert "BUG: updating config import for alembic"

This reverts commit 41a7f7a

BUG: reverting imports and ignore __init__ for ruff

WIP: trying a different way of formatting

WIP: add two more files to exclude

WIP: going back to just excluding init
Copy link

sonarqubecloud bot commented Feb 9, 2024

Quality Gate Passed Quality Gate passed

Issues
3 New issues

Measures
0 Security Hotspots
No data about Coverage
3.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@mbrzus mbrzus left a comment

Choose a reason for hiding this comment

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

Mostly stylistic changes due to ruff. Changes look good and pass tests

@mbrzus mbrzus merged commit 835c185 into main Feb 9, 2024
10 checks passed
@mbrzus mbrzus added W2 Straightforward and removed W1 Easy labels Feb 9, 2024
@zmorris248 zmorris248 deleted the ruff branch February 21, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers W2 Straightforward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants