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): resolve file path for the black linter to avoid a bug in black file path handling #92

Merged
merged 20 commits into from
Feb 6, 2024

Conversation

justinchuby
Copy link
Owner

@justinchuby justinchuby commented Feb 1, 2024

Fixes #93. This change uses Path().resolve() on the file path provided to black to avoid a bug described in psf/black#4209.

Thanks @guotuofeng

@justinchuby justinchuby changed the title chore(ci): bump black version to 24.1.1 chore(ci): bump black version to 24.1.1 and fix adapter bug Feb 4, 2024
@justinchuby justinchuby marked this pull request as draft February 4, 2024 15:52
@justinchuby
Copy link
Owner Author

Doesn't work

@justinchuby
Copy link
Owner Author

justinchuby commented Feb 4, 2024

Also black 24.1's line length control is inconsistent on Windows and Linux, seen in the CI.

@justinchuby justinchuby changed the title chore(ci): bump black version to 24.1.1 and fix adapter bug fix(linter): resolve file path for the black linter to avoid a bug in black file path handling Feb 6, 2024
@justinchuby justinchuby marked this pull request as ready for review February 6, 2024 18:44
@justinchuby justinchuby enabled auto-merge (squash) February 6, 2024 18:47
@justinchuby justinchuby merged commit 0053b50 into main Feb 6, 2024
23 of 24 checks passed
@justinchuby justinchuby deleted the black-24 branch February 6, 2024 18:49
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.

BLACK-ISORT linter fails on Windows when black==24.1.1 and Python==3.9
1 participant