fix docs #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow does static type checking and checks for formatting and linting errors. | |
# The same stack as explained in https://docs.nerf.studio/en/latest/reference/contributing.html is used to ensure consistency. | |
name: formatting-linting | |
on: | |
push: | |
jobs: | |
formatting-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
# load cached env (otherwise nerfstudio can take quite long to install) | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }} | |
# checkout seathru-nerf (this repo) | |
- uses: actions/checkout@v3 | |
with: | |
path: seathru_nerf | |
- name: Install seathru | |
working-directory: ./seathru_nerf | |
run: | | |
pip install -e . | |
# stuff | |
- name: run ruff | |
working-directory: ./seathru_nerf | |
run: ruff seathru/ tests/ | |
- name: run black | |
working-directory: ./seathru_nerf | |
run: black seathru/ tests/ --check | |
- name: run pyright | |
working-directory: ./seathru_nerf | |
run: pyright |