Skip to content

Commit

Permalink
adapting lints for codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jun 11, 2023
1 parent e3f9488 commit 8df0cdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extend-exclude = [
[default.extend-words]
lod = "lod" # level-of-detail
teh = "teh" # part of @teh-cmc
ND = "ND" # np.NDArray

# American English:
grey = "gray"
Expand Down
1 change: 1 addition & 0 deletions scripts/check_large_files_allow_list.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Cargo.lock
crates/re_types_builder/src/reflection.rs
crates/re_ui/data/Inter-Medium.otf
4 changes: 3 additions & 1 deletion scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def is_empty(line: str) -> bool:
or line.endswith("(")
or line.endswith("\\")
or line.endswith('r"')
or line.endswith('r#"')
or line.endswith("]")
)

Expand Down Expand Up @@ -442,10 +443,11 @@ def main() -> None:

exclude_paths = {
"./CODE_STYLE.md",
"./crates/re_types_builder/src/reflection.rs", # auto-generated
"./examples/rust/objectron/src/objectron.rs", # auto-generated
"./scripts/lint.py", # we contain all the patterns we are linting against
"./web_viewer/re_viewer_debug.js", # auto-generated by wasm_bindgen
"./web_viewer/re_viewer.js", # auto-generated by wasm_bindgen
"./web_viewer/re_viewer_debug.js", # auto-generated by wasm_bindgen
}

for root, dirs, files in os.walk(".", topdown=True):
Expand Down

0 comments on commit 8df0cdc

Please sign in to comment.