-
Notifications
You must be signed in to change notification settings - Fork 0
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
Workflow fail if black and isort fail #38
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Set up Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -33,9 +33,19 @@ jobs: | |
- name: Run Black | ||
run: black ./ --config pyproject.toml | ||
|
||
- name: Check Black formatting | ||
uses: psf/black@stable | ||
with: | ||
options: "--check --verbose" | ||
src: "./" | ||
# use_pyproject: true, should be used but causing issues so commenting for now | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More info in my comment below, but I don't think we actually want to use the |
||
|
||
- name: Run Isort | ||
run: isort . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above, I don't think we want to keep the "Run Isort" section any more. |
||
|
||
- name: Check Isort formatting | ||
uses: isort/isort-action@master | ||
|
||
- name: Setup flake8 annotations | ||
uses: rbialon/[email protected] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the "Run Black" section is wanted. The concern is if we format the code before checking it, then the workflow will always pass.