Repository navigation
Configure pre-commit CI #16866
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
Configure pre-commit CI #16866
Changes from 15 commits
4da270b
3a0f237
23c136b
53003dc
5980bd6
7a19fc1
216d582
196737c
16ad2d6
25ecfba
346b12f
be0bdc7
3dab829
51be4e0
713c2b1
afc5bea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,24 @@ | ||
| exclude: ^user_docs/(?!en/).*$ | ||
|
|
||
| # https://pre-commit.ci/ | ||
| # Configuration for Continuous Integration service | ||
| ci: | ||
| # Can't run Windows scripts on Linux | ||
| # These also do not apply fixes, only run tests | ||
| skip: [scons-source, checkPot, unitTest, licenseCheck] | ||
| submodules: true | ||
| autoupdate_commit_msg: "Pre-commit autoupdate" | ||
| autofix_commit_msg: "Pre-commit autofix" | ||
|
|
||
| repos: | ||
|
|
||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.6.0 | ||
| hooks: | ||
| # Checks python syntax | ||
| - id: check-ast | ||
| # File uses encoding not supported in Linux | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ugh, I actually believe that comtypes should consider to fix this, enforcing UTF-8 for their generated modules. I filed enthought/comtypes#592
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks agreed
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we should also consider adding encoding checks to pre-commit? |
||
| exclude: source/comInterfaces/_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.py | ||
|
seanbudd marked this conversation as resolved.
Resolved
|
||
| - id: check-case-conflict | ||
| - id: check-merge-conflict | ||
| - id: trailing-whitespace | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you open a small PR to fix this up. Maybe auto-fix and auto-update instead?