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

Request: controlling pre-commit tab size (2 spaces vs 4 spaces) #620

Open
jamesbraza opened this issue Oct 24, 2023 · 1 comment
Open

Request: controlling pre-commit tab size (2 spaces vs 4 spaces) #620

jamesbraza opened this issue Oct 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jamesbraza
Copy link

Problem

I have prettier run on all files with .prettierrc.toml of tabWidth = 4, to match PEP 8 spacing in all files (YAML, JSON, etc.).

This conflicts with nitpick's edits to .pre-commit-config.yaml, because nitpick uses 2 spaces.

Possible solution

Exposing a new configuration parameter tab-width to enable compatibility with my prior config.

@jamesbraza jamesbraza added the enhancement New feature or request label Oct 24, 2023
@andreoliwa
Copy link
Owner

Exposing a new configuration parameter tab-width to enable compatibility with my prior config.

That's probably the best solution.
I thought of reading EditorConfig's settings or even Prettier's, but that might be overkill for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Upvoted / Requests
Development

No branches or pull requests

2 participants