Skip to content

Commit

Permalink
update mypy setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jun 15, 2024
1 parent ea0337e commit aeed9a8
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/flake8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ jobs:
pip install flake8
- name: Run flake8
run: |
flake8 hrdae/
flake8 hrdae/ > flake8_report.txt
- name: Upload flake8 report
uses: actions/upload-artifact@v2
with:
name: flake8_report
path: flake8_report.txt
7 changes: 6 additions & 1 deletion .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ jobs:
pip install mypy
- name: Run mypy
run: |
mypy .
mypy . > mypy_report.txt
- name: Upload mypy report
uses: actions/upload-artifact@v2
with:
name: mypy_report
path: mypy_report.txt
13 changes: 12 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-cov
pip install -r requirements.txt
- name: Run tests
run: |
pytest test/
pytest test/ --cov=hrdae/ --cov-report=xml > pytest_report.txt
- name: Upload pytest report
uses: actions/upload-artifact@v2
with:
name: pytest_report
path: pytest_report.txt
- name: Upload coverage report
uses: actions/upload-artifact@v2
with:
name: coverage_report
path: coverage.xml
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
![mypy](https://github.com/nnaakkaaii/HR-DAE/actions/workflows/mypy.yaml/badge.svg)
![flake8](https://github.com/nnaakkaaii/HR-DAE/actions/workflows/flake8.yaml/badge.svg)
![pytest](https://github.com/nnaakkaaii/HR-DAE/actions/workflows/pytest.yaml/badge.svg)

# Hierarchical Recurrent Disentangled AutoEncoder (HR-DAE)
Hierarchical Recurrent Disentangled AutoEncoder for 3D Video Reconstruction & Frame Prediction

Expand Down
20 changes: 18 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
[mypy]
[mypy-tqdm]
[mypy-hydra]
ignore_missing_imports = True
[mypy-tqdm.*]
[mypy-hydra.*]
ignore_missing_imports = True
[mypy-numpy]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-omegaconf]
ignore_missing_imports = True
[mypy-omegaconf.*]
ignore_missing_imports = True
[mypy-pytorch_tcn]
ignore_missing_imports = True
[mypy-pytorch_tcn.*]
ignore_missing_imports = True
[mypy-torch]
ignore_missing_imports = True
[mypy-torch.*]
ignore_missing_imports = True
[mypy-torchvision]
ignore_missing_imports = True
[mypy-torchvision.*]
ignore_missing_imports = True
[mypy-tqdm]
ignore_missing_imports = True
[mypy-tqdm.*]
ignore_missing_imports = True

0 comments on commit aeed9a8

Please sign in to comment.