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

Fix linter check for black and isort not failing when changes required #27

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

lindsay-stevens
Copy link
Contributor

Linters black and isort returncode is 0 when fixes required and applied, so add arguments that make it returncode 1 when fixes required. Linters flake8 and pycodestyle` return 1 already.

What has been done to verify that this works as intended?

Same as XLSForm/pyxform#631

Why is this the best possible solution? Were any other approaches considered?

It's the required arguments

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

None, only relevant for GitHub actions

Do we need any specific form for testing your changes? If so, please attach one.

No

Does this change require updates to documentation? If so, please file an issue here and include the link below.

None

Before submitting this PR, please make sure you have:

  • included test cases for core behavior and edge cases in tests
  • run nosetests and verified all tests pass
  • run python bin/pre_commit.py to format / lint code
  • verified that any code or assets from external sources are properly credited in comments

…quired

- Linters black and isort returncode is 0 when fixes required and applied,
  so add arguments that make it returncode 1 when fixes required.
  Linters flake8 and pycodestyle` return 1 already.
@lognaturel lognaturel merged commit 21a540d into getodk:master Jan 24, 2023
@lindsay-stevens lindsay-stevens deleted the linter-fix branch January 25, 2023 03:39
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