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

Lint backend #1557

Merged
merged 3 commits into from
Mar 13, 2024
Merged

Lint backend #1557

merged 3 commits into from
Mar 13, 2024

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Feb 15, 2024

Add a CI step to lint the backend. Discussed with @aarongundel after the avoidable error in #1551.

Alternatives considered

pylint -- would have caught #1551, deeply configurable
flake8 -- focused more on style/cosmetics. wasn't immediately clear how to just filter down on the important stuff.
ruff -- the new hotness in python linting, but I still don't think it would have caught #1551. sure it will one day, though, and we can switch over when it's fast/mature.

@jacobtylerwalls
Copy link
Member Author

See failed action on first commit 👍

@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review February 15, 2024 22:12
Copy link
Member

@chiatt chiatt left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -336,6 +336,8 @@ def save_removed_from_tile(self, request, sample_resourceid, removed_from_resour
)
tile.save(transaction_id=transactionid, request=request, index=False)

return tile
Copy link
Member

Choose a reason for hiding this comment

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

Oh - interesting. It caught a potentially serious bug.

@chiatt chiatt merged commit 2832347 into dev/1.1.x Mar 13, 2024
1 check passed
@chiatt chiatt deleted the lint-backend branch March 13, 2024 19:58
@jacobtylerwalls jacobtylerwalls removed the request for review from aarongundel March 13, 2024 20:43
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