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

Update linting Makefile targets to run isort and prettier --check #1194

Merged
merged 8 commits into from
Apr 4, 2024

Conversation

egibs
Copy link
Contributor

@egibs egibs commented Apr 4, 2024

Background

A customer pointed out two gaps with our current make lint Makefile target. It's possible to merge files that violate isort and prettier since we aren't checking for those currently.

This PR addresses those gaps.

Changes

  • Adds pipenv run isort --profile=black --check-only $(dirs) to the lint-pylint target
  • Adds npx prettier . --check to lint-fmt

Testing

  • make lint still passes as expected

@egibs egibs requested review from a team April 4, 2024 15:15
Makefile Show resolved Hide resolved
arielkr256
arielkr256 previously approved these changes Apr 4, 2024
@egibs egibs requested a review from arielkr256 April 4, 2024 20:33
@egibs egibs merged commit 88a64fb into release Apr 4, 2024
5 checks passed
@egibs egibs deleted the egibs-update-lint-workflow branch April 4, 2024 20:38
egibs pushed a commit that referenced this pull request Apr 9, 2024
)

* Update linting Makefile targets to run isort and prettier --check

* Empty commit for Checks

* Checkout head ref

* make fmt

* Appease the linter
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.

3 participants