Skip to content

Commit 10faf5d

Browse files
authored
fix lint and ruff issues
## Description <!-- Brief description of the changes --> ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation ## Testing - [ ] Tests pass locally - [ ] New tests added (if applicable) ## Related Issues Closes #
2 parents 32ad292 + 72d95cf commit 10faf5d

266 files changed

Lines changed: 8191 additions & 8576 deletions

File tree

Some content is hidden

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

.github/.git-blame-ignore-revs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Migrate code style to Black
2-
c2e17898e9b907384b4e8669828e1efbc9efdc77
2+
c2e17898e9b907384b4e8669828e1efbc9efdc77

.github/workflows/benchmark.yml.disabled

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ on:
1010
jobs:
1111
benchmark:
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.10'
21-
21+
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install -e .
2626
pip install pytest-benchmark memory-profiler
27-
27+
2828
- name: Run benchmarks
2929
run: |
3030
pytest tests/benchmarks/ -v --benchmark-only --benchmark-save=benchmark
3131
python scripts/run_benchmarks.py
32-
32+
3333
- name: Upload benchmark results
3434
uses: actions/upload-artifact@v4
3535
with:

.github/workflows/black.yml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
- uses: actions/checkout@v4
1010
- uses: psf/black@stable
1111
with:
12-
options: "--line-length 150"
12+
options: "--line-length 150"

.github/workflows/dependency-update.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ on:
88
jobs:
99
update-dependencies:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- uses: actions/checkout@v4
14-
14+
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.10'
19-
19+
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install pip-tools
24-
24+
2525
- name: Update requirements
2626
run: |
2727
pip-compile requirements.in --upgrade --output-file requirements.txt
28-
28+
2929
- name: Create Pull Request
3030
uses: peter-evans/create-pull-request@v5
3131
with:
@@ -34,7 +34,7 @@ jobs:
3434
title: 'Automated dependency updates'
3535
body: |
3636
This PR contains automated dependency updates.
37-
37+
3838
Please review the changes and test before merging.
3939
branch: dependency-updates
4040
delete-branch: true

.github/workflows/deploy-docs.yml.disabled

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18-
18+
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: '3.10'
23-
23+
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install mkdocs mkdocs-material pymdown-extensions
28-
28+
2929
- name: Prepare documentation
3030
run: |
3131
chmod +x prepare_docs.sh
3232
./prepare_docs.sh
33-
33+
3434
- name: Deploy documentation
35-
run: mkdocs gh-deploy --force
35+
run: mkdocs gh-deploy --force

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ jobs:
1010
docs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 20
13-
13+
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.10'
21-
21+
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install -e .
2626
pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints myst-parser sphinx-copybutton
27-
27+
2828
- name: Build documentation
2929
run: |
3030
cd docs/
3131
make html
32-
32+
3333
- name: Upload documentation
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: documentation
37-
path: docs/_build/html/
37+
path: docs/_build/html/

.github/workflows/gpu-test.yml.disabled

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ on:
1010
jobs:
1111
gpu-test:
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.10'
21-
21+
2222
- name: Install CUDA dependencies
2323
run: |
2424
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
2525
sudo dpkg -i cuda-keyring_1.0-1_all.deb
2626
sudo apt-get update
2727
sudo apt-get -y install cuda-toolkit-12-0
28-
28+
2929
- name: Install Python dependencies
3030
run: |
3131
python -m pip install --upgrade pip
3232
pip install -e .
3333
pip install pytest pytest-cov
34-
34+
3535
- name: Run GPU tests
3636
run: |
3737
python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}')"

.github/workflows/lint.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 15
13-
13+
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.10'
21-
21+
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install -e .
2626
pip install "black==25.9.0" isort flake8 mypy ruff
27-
27+
2828
- name: Run black (code formatting)
2929
run: black --check --diff src/alignment/ tests/ scripts/
30-
30+
3131
- name: Run isort (import sorting)
3232
run: isort --check-only --diff --profile black src/alignment/ tests/ scripts/
33-
33+
3434
- name: Run flake8 (linting)
3535
run: flake8 src/alignment/ tests/ scripts/ --max-line-length=100 --ignore=E203,W503 || echo "Flake8 has warnings"
36-
36+
3737
- name: Run mypy (type checking)
3838
run: mypy src/alignment/ --ignore-missing-imports --no-strict-optional || echo "Type checking has warnings"

.github/workflows/pages.yml.disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
path: './docs/build/html'
4444
- name: Deploy to GitHub Pages
4545
id: deployment
46-
uses: actions/deploy-pages@v4
46+
uses: actions/deploy-pages@v4

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ jobs:
1010
pre-commit:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 15
13-
13+
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.10'
21-
21+
2222
- name: Install pre-commit
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install pre-commit
26-
26+
2727
- name: Cache pre-commit
2828
uses: actions/cache@v4
2929
with:
3030
path: ~/.cache/pre-commit
3131
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
32-
32+
3333
- name: Run pre-commit
3434
uses: pre-commit/action@v3.0.0
3535
continue-on-error: true

0 commit comments

Comments
 (0)