Skip to content

Commit 805b8f6

Browse files
authored
Merge branch 'main' into op-MindGYM
2 parents 04fb2c7 + ad90389 commit 805b8f6

File tree

345 files changed

+17476
-17474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+17476
-17474
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install setuptools
33+
pip install build setuptools
3434
- name: Build package
35-
run: python setup.py sdist bdist_wheel
35+
run: python -m build
3636
- name: Publish package
3737
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3838
with:

.github/workflows/unit-test-partial.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ name: unittest-partial
66
on:
77
workflow_dispatch:
88
pull_request:
9-
push:
10-
branches:
11-
- main
129

1310
permissions:
1411
contents: read
@@ -36,6 +33,12 @@ jobs:
3633
run: |
3734
docker compose exec ray-head bash -c '/root/.local/bin/uv pip install --system -e .\[all\]'
3835
36+
- name: Print Pip Dependency Tree
37+
working-directory: dj-${{ github.run_id }}/.github/workflows/docker
38+
run: |
39+
docker compose exec ray-head bash -c '/root/.local/bin/uv pip install --system pipdeptree'
40+
docker compose exec ray-head bash -c 'pipdeptree'
41+
3942
- name: Clean dataset cache
4043
working-directory: dj-${{ github.run_id }}/.github/workflows/docker
4144
run: |

.github/workflows/unit-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737
docker compose exec ray-head bash -c '/root/.local/bin/uv pip install --system -e .\[all\]'
3838
docker compose exec ray-worker bash -c '/root/.local/bin/uv pip install --system -e .\[all\]'
3939
40+
- name: Print Pip Dependency Tree
41+
working-directory: dj-${{ github.run_id }}/.github/workflows/docker
42+
run: |
43+
docker compose exec ray-head bash -c '/root/.local/bin/uv pip install --system pipdeptree'
44+
docker compose exec ray-head bash -c 'pipdeptree'
45+
4046
- name: Clean dataset cache
4147
working-directory: dj-${{ github.run_id }}/.github/workflows/docker
4248
run: |

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dist
1515
wandb/
1616
__pycache__
1717
.vscode/
18+
.ipynb_checkpoints/
1819

1920
# label studio related
2021
label_studio_data/
@@ -30,5 +31,3 @@ tests/ops/data/*dup*
3031
tests/tools/tmp_*/
3132
tests/ops/deduplicator/chinese_dedup/
3233
tests/ops/deduplicator/english_dedup/
33-
34-
.ipynb_checkpoints/

.pre-commit-config.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
repos:
2-
- repo: https://github.com/PyCQA/flake8
3-
rev: 6.1.0
4-
hooks:
5-
- id: flake8
6-
additional_dependencies:
7-
- flake8-pyproject
8-
- pycodestyle<2.12.0
92
- repo: https://github.com/PyCQA/isort.git
103
rev: 5.12.0
114
hooks:
125
- id: isort
13-
- repo: https://github.com/pre-commit/mirrors-yapf
14-
rev: v0.32.0
6+
- repo: https://github.com/psf/black
7+
rev: 25.1.0
158
hooks:
16-
- id: yapf
17-
exclude: data_juicer/ops/common/special_characters.py
18-
additional_dependencies:
19-
- toml
9+
- id: black
2010
- repo: https://github.com/pre-commit/pre-commit-hooks
2111
rev: v5.0.0
2212
hooks:
@@ -28,8 +18,6 @@ repos:
2818
exclude: thirdparty/
2919
- id: requirements-txt-fixer
3020
exclude: thirdparty/
31-
- id: double-quote-string-fixer
32-
exclude: ^(thirdparty/|data_juicer/ops/common/special_characters.py)
3321
- id: check-merge-conflict
3422
exclude: thirdparty/
3523
- id: fix-encoding-pragma
@@ -38,6 +26,13 @@ repos:
3826
- id: mixed-line-ending
3927
exclude: thirdparty/
4028
args: [ "--fix=lf" ]
29+
- repo: https://github.com/PyCQA/flake8
30+
rev: 6.1.0
31+
hooks:
32+
- id: flake8
33+
additional_dependencies:
34+
- flake8-pyproject
35+
- flake8-black
4136
- repo: local
4237
hooks:
4338
- id: build-op-doc

0 commit comments

Comments
 (0)