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

style: fix isort config #1817

Merged
merged 2 commits into from Apr 15, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Apr 14, 2022

Summary of changes

isort was misconfigured to only touch *.{pyw,pyi} files.

This patch fixes isort config so that it actually does sort imports.

It also removes the attempt to ignore the test directory.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@aucampia
Copy link
Member Author

basically the same as #1798 - again would like to know what people think, I think it is useful but would be fine to leave it also if it bothers anyone too much.

@aucampia aucampia marked this pull request as draft April 14, 2022 18:20
@aucampia
Copy link
Member Author

Okay actually isort is doing nothing, so this PR will be basically just adding isort with working config.

@aucampia aucampia force-pushed the iwana-20220414T2012-isort_tests branch from a1615ac to b723519 Compare April 14, 2022 18:28
@aucampia aucampia changed the title style: isort tests style: fix isort config Apr 14, 2022
@aucampia
Copy link
Member Author

As with #1798 - if everyone is in agreement I will rebase, comment "pre-commit.ci autofix" and merge.

@aucampia aucampia marked this pull request as ready for review April 14, 2022 18:31
Copy link
Member

@nicholascar nicholascar left a comment

Choose a reason for hiding this comment

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

Good to have it actually touch the Python files, given that's what it's for!

@aucampia
Copy link
Member Author

@gjhiggins good to have your feedback here also. Don't want to make anyones life harder, so if we should look at ways of making these things less onerous on developers we should look at it.

`isort` was misconfigured to only touch `*.{pyw,pyi}` files.

This patch fixes isort config so that it actually does sort imports.

It also removes the attempt to ignore the test directory.
@aucampia aucampia force-pushed the iwana-20220414T2012-isort_tests branch from b723519 to 520bdda Compare April 15, 2022 13:24
@aucampia
Copy link
Member Author

pre-commit.ci autofix

@aucampia aucampia merged commit 4b30926 into RDFLib:master Apr 15, 2022
@aucampia aucampia deleted the iwana-20220414T2012-isort_tests branch May 7, 2022 09:31
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.

None yet

2 participants