1
0
Fork 0

Revert "update editorconfig, enforce via CI (#1343)" (#1380)

This reverts commit da2efecbe2.
pull/1384/head
George Hotz 2023-07-31 10:35:50 -07:00 committed by GitHub
parent da2efecbe2
commit 37fa7e96fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 158 additions and 182 deletions

View File

@ -1,16 +1,4 @@
# Top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file, utf-8 charset
[*]
end_of_line = lf
trim_trailing_whitespace = true
charset = utf-8
# 2 space indentation
[*.py]
indent_style = space
# ignore binary files
[{*.hwx,*.mlmodel,*.weights,*.golden}]
end_of_line = unset
trim_trailing_whitespace = unset
indent_size = 2

View File

@ -1,13 +0,0 @@
name: EditorConfig Checker
on:
push:
pull_request:
jobs:
editorconfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker

View File

@ -69,5 +69,6 @@ int main(int argc, char* argv[]) {
int ret = ANECCompile(optionsDictionary, flagsDictionary, 0);
printf("compile: %d\n", ret);
return ret;
}

View File

@ -74,3 +74,4 @@ class TestYOLOv8(unittest.TestCase):
if __name__ == '__main__':
unittest.main()

View File

@ -102,6 +102,5 @@ class TestUtils(unittest.TestCase):
assert a.shape == b.shape
assert a.dtype == b.dtype
assert np.array_equal(a, b)
if __name__ == '__main__':
unittest.main()