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

docs: Refactor pycodestyle/Flake8 compatibility docs #4194

Merged
merged 11 commits into from
Feb 2, 2024

Conversation

cobaltt7
Copy link
Contributor

Description

Resolves #4173
Related to #3888

Checklist - did you ...

  • [-] Add an entry in CHANGES.md if necessary?
  • [-] Add / update tests if necessary?
  • [y] Add new / update outdated documentation?

Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks, this is good, but I think there's some larger areas of possible improvement. If you're up for it, please make these changes; otherwise we can merge this as is and leave the rest for another PR.

docs/the_black_code_style/current_style.md Outdated Show resolved Hide resolved
docs/guides/using_black_with_other_tools.md Outdated Show resolved Hide resolved
@cobaltt7 cobaltt7 changed the title Document disabling E701 docs: Refactor pycodestyle/Flake8 compatibility docs Jan 31, 2024
Copy link
Contributor Author

@cobaltt7 cobaltt7 left a comment

Choose a reason for hiding this comment

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

@JelleZijlstra I've made the requested changes. My thought process for some of the changes:

  • I updated the compatible_configs folder (and added some for pycodestyle). This was an oversight in Document disabling E704 #3888. Not sure how useful this folder is, but I didn't think removing it would be in scope here.
  • It turns out that E704 is already disabled by default, so Document disabling E704 #3888 actually didn't document it correctly. Fixed that here.
  • I moved the pycodestyle section above Flake8 and moved the reasoning section there as well. Since Flake8 is a wrapper around pycodestyle, I felt like it made more sense to have the bulk of the docs in the pycodestyle section instead of under Flake8.
  • The Bugbear information was previously only in current_style.md. I moved it to using_black_with_other_tools.md, and added a link in current_style.md and in the FAQ.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

docs/guides/using_black_with_other_tools.md Outdated Show resolved Hide resolved
@hauntsaninja hauntsaninja added the skip news Pull requests that don't need a changelog entry. label Jan 31, 2024
Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks! A few more comments.

docs/faq.md Show resolved Hide resolved
docs/guides/using_black_with_other_tools.md Outdated Show resolved Hide resolved
docs/guides/using_black_with_other_tools.md Outdated Show resolved Hide resolved
docs/guides/using_black_with_other_tools.md Outdated Show resolved Hide resolved
docs/the_black_code_style/current_style.md Outdated Show resolved Hide resolved
docs/the_black_code_style/current_style.md Outdated Show resolved Hide resolved
cobaltt7 and others added 2 commits February 1, 2024 10:49
Co-authored-by: Jelle Zijlstra <[email protected]>
Signed-off-by: RedGuy12 <[email protected]>
@JelleZijlstra JelleZijlstra merged commit 632f44b into psf:main Feb 2, 2024
43 checks passed
@cobaltt7 cobaltt7 deleted the patch-1 branch February 5, 2024 16:15
@@ -0,0 +1,3 @@
[pycodestyle]
max-line-length = 88
ignore = E203,E701

Choose a reason for hiding this comment

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

pycodestyle does not read the .flake8 config file

this configuration also will result in quite a lot of frustration as it enables several pairs of incompatible codes

Copy link
Contributor Author

@cobaltt7 cobaltt7 Feb 13, 2024

Choose a reason for hiding this comment

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

whoops, that looks it was my bad; the black docs do have the correct formats listed

what further incompatible codes need to be disabled?

Choose a reason for hiding this comment

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

personally I would include (at least) all of the disabled-by-default codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Pull requests that don't need a changelog entry.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black and flake8 no longer in sync
4 participants