Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ repos:
exclude: \.svg$
- id: fix-byte-order-marker
- id: forbid-submodules
#- id: mixed-line-ending
- id: mixed-line-ending
exclude: ^static/img/.*
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this would need to apply to /blog//.png|jpg|gif as well. I am not sure how advanced the exclude clause syntax is, but sure a lot of images are stowed away in those directories as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

@DaanHoogland it is well overdue you need to install pre-commit on your local machine and actually run it and test your PRs and same for the main CloudStack project.

There are no real changes needed here since the tests have passed and I was only really wanting to exclude SVG files.

Copy link
Contributor

Choose a reason for hiding this comment

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

good point, @jbampton , but we do need to add that to the wiki/some readme as well. (nothing to do with this commit)

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, @jbampton , but we do need to add that to the wiki/some readme as well. (nothing to do with this commit)

apache/cloudstack#11680

Copy link
Contributor

Choose a reason for hiding this comment

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

ohw. I see you beat me to it. ;) (ref: apache/cloudstack#11680)

- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ^static/.*$