Skip to content

Commit b5b8236

Browse files
author
namgyu-youn
authored
Merge branch 'main' into main
2 parents a619fa7 + 11b3eb6 commit b5b8236

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed

.github/workflows/code_quality.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Code Quality
2+
3+
on:
4+
push:
5+
tags: ["[0-9]+.[0-9]+.[0-9]+"]
6+
pull_request:
7+
branches: [main, release/*]
8+
9+
jobs:
10+
code-quality:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.12"
18+
- name: Install tox
19+
run: pip install tox
20+
- name: Run code quality checks
21+
run: tox -e pre-commit-all

SECURITY.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Security
2+
3+
NVIDIA is dedicated to the security and trust of our software products and services, including all source code repositories managed through our organization.
4+
5+
If you need to report a security issue, please use the appropriate contact points outlined below. **Please do not report security vulnerabilities through GitHub.**
6+
7+
## Reporting Potential Security Vulnerability in an NVIDIA Product
8+
9+
To report a potential security vulnerability in any NVIDIA product:
10+
11+
- Web: [Security Vulnerability Submission Form](https://www.nvidia.com/object/submit-security-vulnerability.html)
12+
13+
- We encourage you to use the following PGP key for secure email communication: [NVIDIA public PGP Key for communication](https://www.nvidia.com/en-us/security/pgp-key)
14+
- Please include the following information:
15+
- Product/Driver name and version/branch that contains the vulnerability
16+
- Type of vulnerability (code execution, denial of service, buffer overflow, etc.)
17+
- Instructions to reproduce the vulnerability
18+
- Proof-of-concept or exploit code
19+
- Potential impact of the vulnerability, including how an attacker could exploit the vulnerability
20+
21+
While NVIDIA currently does not have a bug bounty program, we do offer acknowledgement when an externally reported security issue is addressed under our coordinated vulnerability disclosure policy. Please visit our [Product Security Incident Response Team (PSIRT)](https://www.nvidia.com/en-us/security/psirt-policies/) policies page for more information.
22+
23+
## NVIDIA Product Security
24+
25+
For all security-related concerns, please visit NVIDIA's [Product Security portal](https://www.nvidia.com/en-us/security)

tox.ini

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[tox]
2+
envlist=
3+
pre-commit-all
4+
py312-torch27-unit
5+
skipsdist = True
6+
toxworkdir = /tmp/{env:USER}-modelopt-tox
7+
8+
9+
############################
10+
# CPU Unit test environments
11+
############################
12+
[testenv:{py39,py310,py311,py312}-torch{24,25,26,27}-unit]
13+
deps =
14+
# torch version auto-selected based on torchvision version
15+
torch24: torchvision~=0.19.0
16+
torch25: torchvision~=0.20.0
17+
torch26: torchvision~=0.21.0
18+
torch27: torchvision~=0.22.0
19+
20+
-e .[all,dev-test]
21+
commands =
22+
python -m pytest tests/unit --cov
23+
24+
25+
#############################################
26+
# Code quality checks on all files or on diff
27+
#############################################
28+
[testenv:{pre-commit}-{all,diff}]
29+
deps =
30+
-e .[all,dev-lint]
31+
commands =
32+
all: pre-commit run --all-files --show-diff-on-failure {posargs}
33+
diff: pre-commit run --from-ref origin/main --to-ref HEAD {posargs}
34+
35+
36+
#####################
37+
# Documentation build
38+
#####################
39+
[testenv:{build,debug}-docs]
40+
allowlist_externals =
41+
rm
42+
passenv =
43+
SETUPTOOLS_SCM_PRETEND_VERSION
44+
deps =
45+
-e .[all,dev-docs]
46+
changedir = docs
47+
commands_pre =
48+
rm -rf build
49+
rm -rf source/reference/generated
50+
commands =
51+
sphinx-build source build/html --fail-on-warning --show-traceback --keep-going
52+
debug: sphinx-autobuild source build/html --host 0.0.0.0

0 commit comments

Comments
 (0)