-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
805 changed files
with
97,748 additions
and
39,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright \(c\) (\d{4}|\d{4}-\d{4}) Intel Corporation | ||
# Licensed under the Apache License, Version 2.0 \(the "License"\); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# pre-commit autoformatting (isort, black) | ||
de18dbe23246135d3604a8116c3484e98a8ed0cc | ||
|
||
# license formatting | ||
34b6b82a746ddac6668c64f012edfe97de090f06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# With the squash-and-merge strategy that we are employing, the final commit that ends up in the develop branch | ||
# after the PR merge has a brand-new commit SHA that is not equal to the SHA of the last commit in the PR. | ||
# This means that the coverage reports uploaded to Codecov in the course of the (yet unmerged) PR checks will not | ||
# be translated to the ultimate commit in the develop and Codecov will show "missing base report" errors in the UI. | ||
# We don't want to re-run the precommits after PR merge via a separate 'on: push' action on the develop branch, so | ||
# instead will grab the latest coverage report artifact from the just-merged PR and upload it as the report for the | ||
# new commit on develop. Note that this will break if the PR is merged before the coverage artifact for the latest | ||
# PR commit is generated. | ||
|
||
name: Post-PR merge actions | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- develop | ||
types: | ||
- closed | ||
|
||
jobs: | ||
upload-coverage: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 # codecov uploader demands that the scanned files be present when uploading | ||
with: | ||
ref: ${{ github.event.pull_request.merge_commit_sha }} | ||
- uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: precommit.yml | ||
check_artifacts: true | ||
commit: ${{ github.event.pull_request.head.sha }} # this is the latest commit in the PR | ||
name: coverage_xml | ||
- name: Upload coverage report to Codecov | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
# github.event.pull_request.merge_commit_sha is the fresh commit in the develop, | ||
# provided that github.event.pull_request.merged == true | ||
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -C ${{ github.event.pull_request.merge_commit_sha }} -B develop -n "codecov-onnx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: pre-commit-linters | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8.10 | ||
- name: Install pre-commit package | ||
run: make install-pre-commit | ||
- name: Run pre-commit linter suite | ||
run: make pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: precommit | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
onnx: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8.10 | ||
- name: Install NNCF and test requirements | ||
run: make install-onnx-test | ||
- name: Run ONNX precommit test scope | ||
run: make test-onnx | ||
- name: Upload coverage report as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage_xml # optional | ||
path: ./coverage.xml | ||
- name: Upload coverage report to codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
name: codecov-onnx # optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ on: | |
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[settings] | ||
line_length = 120 | ||
force_single_line = true | ||
profile = black | ||
single_line_exclusions = typing | ||
skip_glob=examples/post_training_quantization/torch/ssd300_vgg16/main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Default state for all rules | ||
default: true | ||
|
||
MD013: false # Line length | ||
MD033: false # Inline HTML | ||
MD034: false # Bare URL used | ||
MD036: false # Emphasis used instead of a heading | ||
MD037: false # Spaces inside emphasis markers | ||
MD041: false # First line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
files: '^.*\.py' | ||
args: ["--line-length", "120"] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.33.0 | ||
hooks: | ||
- id: markdownlint | ||
args: [--config=.markdownlint.yaml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
* @openvinotoolkit/nncf_pytorch-maintainers | ||
* @openvinotoolkit/nncf-maintainers | ||
|
||
CODEOWNERS @openvinotoolkit/openvino-admins | ||
|
||
# Control 3d party dependencies | ||
requirements.txt @openvino-configuration-mgmt | ||
**/setup.py @openvino-configuration-mgmt | ||
CODEOWNERS @openvinotoolkit/nncf-admins |
Oops, something went wrong.