-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Migrate v2 branch to develop (#3102)"
This reverts commit 76f2313.
- Loading branch information
Showing
3,283 changed files
with
243,285 additions
and
71,634 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
* | ||
!src/otx | ||
!pyproject.toml | ||
!README.md | ||
!LICENSE | ||
!MANIFEST.in | ||
!docker/download_pretrained_weights.py | ||
**/venv/** | ||
.git | ||
.github | ||
.mypy_cache | ||
.pytest_cache | ||
.tox | ||
.vscode | ||
__pycache__ | ||
build/ | ||
data/ | ||
docs/ | ||
lightning_logs/ | ||
misc/ | ||
results/ | ||
venv/ |
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 @@ | ||
[flake8] | ||
extend-ignore = E203 | ||
exclude = .venv | ||
max-complexity = 6 | ||
max-line-length = 120 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: docker | ||
directory: /.ci | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: docker | ||
directory: /docker | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: pip | ||
directory: /src/otx/api/usecases/exportable_code/demo | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: pip | ||
directory: /requirements | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: pip | ||
directory: /docker | ||
schedule: | ||
interval: weekly |
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,24 +1,31 @@ | ||
# See help here: https://github.com/marketplace/actions/labeler | ||
|
||
OTX 2.0: | ||
- "src/otx/**/*" | ||
CLI: | ||
- "src/otx/cli/**/*" | ||
API: | ||
- "src/otx/api/**/*" | ||
ALGO: | ||
- "src/otx/algorithms/**/*" | ||
TEST: | ||
- "tests/**/*" | ||
DOC: | ||
- "docs/**/*" | ||
- "**/*.md" | ||
- "LICENSE" | ||
- "third-party-programs.txt" | ||
- "NOTICE" | ||
- "for_developers/**/*" | ||
BUILD: | ||
- ".ci/**/*" | ||
- ".github/**/*" | ||
- ".flake8" | ||
- ".isort.cfg" | ||
- ".mdlrc" | ||
- ".pre-commit-config.yaml" | ||
- "markdownlint.rb" | ||
- "setup.py" | ||
- "pyproject.toml" | ||
- "tox.ini" | ||
- "MANIFEST.in" | ||
DEPENDENCY: | ||
- "requirements/*" | ||
- "setup.py" | ||
- "pyproject.toml" |
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 was deleted.
Oops, something went wrong.
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,66 @@ | ||
name: Code Scanning | ||
|
||
on: | ||
workflow_dispatch: # run on request (no need for PR) | ||
push: | ||
branches: | ||
- "releases/*" | ||
- "v2" | ||
schedule: | ||
# every UTC 6PM from Mon to Fri | ||
- cron: "0 18 * * 1-5" | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
Trivy-scan: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip install --require-hashes --no-deps -r requirements/gh-actions.txt | ||
pip-compile --generate-hashes -o /tmp/otx-dev-requirements.txt requirements/dev.txt | ||
pip install --require-hashes --no-deps -r /tmp/otx-dev-requirements.txt | ||
- name: Trivy Scanning | ||
env: | ||
TRIVY_DOWNLOAD_URL: ${{ vars.TRIVY_DOWNLOAD_URL }} | ||
run: tox -vv -e trivy-scan | ||
- name: Upload Trivy results artifact | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: trivy-results | ||
path: | | ||
.tox/trivy-spdx-otx.json | ||
.tox/trivy-results-otx.txt | ||
.tox/trivy-results-otx.csv | ||
Bandit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
pip install --require-hashes --no-deps -r requirements/gh-actions.txt | ||
pip-compile --generate-hashes -o /tmp/otx-dev-requirements.txt requirements/dev.txt | ||
pip install --require-hashes --no-deps -r /tmp/otx-dev-requirements.txt | ||
rm /tmp/otx-dev-requirements.txt | ||
- name: Bandit Scanning | ||
run: tox -e bandit-scan | ||
- name: Upload Bandit artifact | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
with: | ||
name: bandit-report | ||
path: .tox/bandit-report.txt | ||
# Use always() to always run this step to publish scan results when there are test failures | ||
if: ${{ always() }} |
Oops, something went wrong.