Skip to content

Commit

Permalink
Format all python code with black and isort - take 2 (onnx#4427)
Browse files Browse the repository at this point in the history
* Add black and isort into requirement

Signed-off-by: Justin Chu <[email protected]>

update isort

Signed-off-by: Justin Chu <[email protected]>

update config

Signed-off-by: Justin Chu <[email protected]>

* Add ci

Signed-off-by: Justin Chu <[email protected]>

reset ci

Signed-off-by: Justin Chu <[email protected]>

fix linux ci

Signed-off-by: Justin Chu <[email protected]>

* Skip formatting the init file

Signed-off-by: Justin Chu <[email protected]>

* Black isort

Signed-off-by: Justin Chu <[email protected]>

* Gen docs

Signed-off-by: Justin Chu <[email protected]>

Signed-off-by: Justin Chu <[email protected]>
Co-authored-by: Chun-Wei Chen <[email protected]>
Co-authored-by: G. Ramalingam <[email protected]>
  • Loading branch information
3 people authored and Bjarke Roune committed May 6, 2023
1 parent e012a56 commit a3e5bb3
Show file tree
Hide file tree
Showing 258 changed files with 39,324 additions and 24,459 deletions.
8 changes: 4 additions & 4 deletions .azure-pipelines/Linux-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:

- script: |
python -m pip -q install virtualenv
python -m virtualenv py$(python.version)
source py$(python.version)/bin/activate
python -m virtualenv venv
source venv/bin/activate
sudo apt-get install libprotobuf-dev protobuf-compiler
python -m pip install -q --upgrade pip
Expand All @@ -60,7 +60,7 @@ jobs:
displayName: 'Install ONNX and dependencies'
- script: |
source py$(python.version)/bin/activate
source venv/bin/activate
# style check (flake8, mypy, and clang-format)
python -m pip install -q -r requirements-dev.txt
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
displayName: 'Run ONNX tests'
- script: |
source py$(python.version)/bin/activate
source venv/bin/activate
python onnx/backend/test/cmd_tools.py generate-data
git status
# Skip *output_*.pb because NumPy functions might behave differently on different platforms
Expand Down
Loading

0 comments on commit a3e5bb3

Please sign in to comment.