-
Notifications
You must be signed in to change notification settings - Fork 67
chore(tidy3d): FXC-4559-add-type-checking-import-moving-and-checking-to-pre-commit-and-ci #3093
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
base: yaugenst-flex/pydantic-v2
Are you sure you want to change the base?
Changes from all commits
99a1386
bf28388
5293ae1
d80cef2
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,6 +1,7 @@ | ||
| # Batch JSON files | ||
| batch*.json | ||
| *.vtu | ||
| simulation.json | ||
|
|
||
| # Byte-compiled / optimized / DLL files | ||
| *$py.class | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,14 @@ default_install_hook_types: | |
| - pre-commit | ||
| - commit-msg | ||
| repos: | ||
| - repo: local | ||
| hooks: | ||
| - id: move-type-imports | ||
| name: move type-only imports under TYPE_CHECKING | ||
| entry: poetry run python scripts/move_type_imports.py --mode fix --only-changed | ||
|
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. Is there a way we can do this without using poetry? Just because not everyone has it installed?
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. Thinking about it, should we just avoid it in the precommit but keep it in CI?
Contributor
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. Was not expecting that...
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. Do you think this will work for people who don't even have python installed in the system? Just checking how standalone it is? Is it fully self contained?
Contributor
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. It only requires python with the libcst package. |
||
| language: system | ||
| pass_filenames: false | ||
| stages: [pre-commit] | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: "v0.11.11" | ||
| hooks: | ||
|
|
||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.