-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
metaRelated to the repo itself and its processesRelated to the repo itself and its processes
Description
I was trying to remove all trailing whitespace from PEP 750 and noticed that we currently do not have trailing-whitespace and end-of-file-fixer in our pre-commit config. I think it makes sense to include these. From the pre-commit-hooks README:
end-of-file-fixer: Makes sure files end in a newline and only a newline.
trailing-whitespace
Trims trailing whitespace.
- To preserve Markdown hard linebreaks
useargs: [--markdown-linebreak-ext=md](or other extensions used
by your markdownfiles). If for some reason you want to treat all files
as markdown, use--markdown-linebreak-ext=*.- By default, this hook trims all whitespace from the ends of lines.
To specify a custom set of characters to trim instead, useargs: [--chars,"<chars to trim>"].
Do people have objections?
tomasr8
Metadata
Metadata
Assignees
Labels
metaRelated to the repo itself and its processesRelated to the repo itself and its processes