Ignore indentation style
#11004
-
The current project I'm working on has some files which are indented by tabs and some that are indented by spaces. Is there a way to ignore indentation as a whole or enable both tabs or spaces (not in same file)? |
Beta Was this translation helpful? Give feedback.
Answered by
zanieb
Apr 17, 2024
Replies: 1 comment 5 replies
-
Ruff supports hierarchical configuration, so if you can isolate the files into directories grouped by space or tab indentation you can override the configuration per directory. Otherwise, I think you're kind of out of luck. It seems bad to have mixed standards on the project though? |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ShackGH
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ruff supports hierarchical configuration, so if you can isolate the files into directories grouped by space or tab indentation you can override the configuration per directory. Otherwise, I think you're kind of out of luck. It seems bad to have mixed standards on the project though?