Skip to content

Commit 934068c

Browse files
authored
Clean up repo root and unused internal tooling (#1037)
Cleans up some unused non-framework code in the internal_tools folder and scripts. --------- Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent 53a81c8 commit 934068c

36 files changed

+22
-3059
lines changed

.github/workflows/internal_tools.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: license-header-check
2929
name: Run license-check script
30-
entry: python internal/infra-bionemo/src/infra_bionemo/license_check.py -c scripts -c sub-packages -c docs -c internal --license-header ./license_header --modify
30+
entry: python ci/scripts/license_check.py -c sub-packages -c docs -c ci --license-header ./license_header --modify
3131
language: python
3232
additional_dependencies: ["click==8.1.7"]
3333
pass_filenames: false

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ EOF
6464
## Drop this when pytorch images ship the fixed commit.
6565
ARG TE_TAG=9d4e11eaa508383e35b510dc338e58b09c30be73
6666

67-
COPY ./patches/te.patch /tmp/te.patch
67+
COPY ./docker_build_patches/te.patch /tmp/te.patch
6868
RUN git clone --recurse-submodules https://github.com/NVIDIA/TransformerEngine.git /tmp/TransformerEngine && \
6969
cd /tmp/TransformerEngine && \
7070
git checkout --recurse-submodules ${TE_TAG} && \
@@ -354,7 +354,6 @@ FROM bionemo2-base AS release
354354
RUN mkdir -p /workspace/bionemo2/.cache/
355355

356356
COPY VERSION .
357-
COPY ./scripts ./scripts
358357
COPY ./README.md ./
359358
# Copy over folders so that the image can run tests in a self-contained fashion.
360359
COPY ./ci/scripts ./ci/scripts
File renamed without changes.

ci/docker/Dockerfile.uv

Lines changed: 0 additions & 218 deletions
This file was deleted.

ci/docker/entrypoint.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

internal/infra-bionemo/src/infra_bionemo/license_check.py renamed to ci/scripts/license_check.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@
1414
# limitations under the License.
1515

1616

17+
#! /usr/bin/env python3
18+
19+
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20+
# SPDX-License-Identifier: LicenseRef-Apache2
21+
#
22+
# Licensed under the Apache License, Version 2.0 (the "License");
23+
# you may not use this file except in compliance with the License.
24+
# You may obtain a copy of the License at
25+
#
26+
# http://www.apache.org/licenses/LICENSE-2.0
27+
#
28+
# Unless required by applicable law or agreed to in writing, software
29+
# distributed under the License is distributed on an "AS IS" BASIS,
30+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
# See the License for the specific language governing permissions and
32+
# limitations under the License.
33+
34+
1735
import ast
1836
import sys
1937
from dataclasses import dataclass

ci/scripts/static_checks.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ set -xueo pipefail
55
REPOSITORY_ROOT=$(git rev-parse --show-toplevel)
66
cd $REPOSITORY_ROOT
77

8-
echo "Running ruff checks"
9-
set +e
10-
ruff check scripts/ sub-packages/ docs/
11-
E_RUFF_CHECK="$?"
12-
set -e
13-
148
echo "Running tach checks"
159
set +e
1610
tach check
@@ -19,7 +13,7 @@ set -e
1913

2014
echo "Running pre-commit checks"
2115
set +e
22-
pre-commit run --all-files --show-diff-on-failure --color always
16+
pre-commit run --all-files --show-diff-on-failure --color always --verbose
2317
E_PRE_COMMIT="$?"
2418
set -e
2519

@@ -29,10 +23,6 @@ if [[ "${E_PRE_COMMIT}" != "0" ]]; then
2923
ANY_FAILURE=1
3024
echo "ERROR: pre-commit hooks failed! (exit: ${E_PRE_COMMIT})"
3125
fi
32-
if [[ "${E_RUFF_CHECK}" != "0" ]]; then
33-
ANY_FAILURE=1
34-
echo "ERROR: ruff check failed! (exit: ${E_RUFF_CHECK})"
35-
fi
3626
if [[ "${E_TACH_CHECK}" != "0" ]]; then
3727
ANY_FAILURE=1
3828
echo "ERROR: tach check failed! (exit: ${E_TACH_CHECK})"

docs/docs/main/contributing/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ We recommend using the developer container for contributions.
228228

229229
```bash
230230
pip install -r dev-requirements.txt --user
231-
python ./scripts/license_check.py --modify --replace --license-header ./license_header -c sub-packages/ -c docs/ -c scripts/ -c ci/ -c internal/
231+
python ci/scripts/license_check.py --modify --replace --license-header ./license_header -c sub-packages/ -c docs/ -c scripts/ -c ci/ -c internal/
232232
```
233233

234234
#### Updating the secrets baseline file

0 commit comments

Comments
 (0)