Skip to content

Add .gram file to the .editorconfig #136680

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

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jul 15, 2025

 trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook

Fixing Grammar/python.gram

See https://github.com/python/cpython/actions/runs/16288817490/job/45993680092?pr=136653

trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space

[*.{py,c,cpp,h}]
[*.{py,c,cpp,h,gram}]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that it's relevant to issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

It sets <tab> to use 4 spaces. It is rather useful.

@sobolevn sobolevn merged commit 2f0db9b into python:main Jul 16, 2025
50 checks passed
@miss-islington-app
Copy link

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 16, 2025
(cherry picked from commit 2f0db9b)

Co-authored-by: sobolevn <[email protected]>
@miss-islington-app
Copy link

Sorry, @sobolevn, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 2f0db9b05f0598548c0c136571c31065ecf961e5 3.13

@bedevere-app
Copy link

bedevere-app bot commented Jul 16, 2025

GH-136714 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jul 16, 2025
sobolevn added a commit to sobolevn/cpython that referenced this pull request Jul 16, 2025
(cherry picked from commit 2f0db9b)

Co-authored-by: sobolevn <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jul 16, 2025

GH-136715 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 16, 2025
sobolevn added a commit that referenced this pull request Jul 16, 2025
Add `.gram` file to the `.editorconfig` (GH-136680)
(cherry picked from commit 2f0db9b)

Co-authored-by: sobolevn <[email protected]>
sobolevn added a commit that referenced this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants