python / python-docs-theme

Sphinx theme for Python documentation
Other
74 stars 58 forks source link

Lint on GitHub Actions via pre-commit #159

Closed hugovk closed 10 months ago

hugovk commented 10 months ago

Add some pre-commit checks and apply autofixes. Also some minor config updates.

I also ran https://github.com/tox-dev/pyproject-fmt/ to reformat pyproject.toml to standardise it and make it much easier to compare with other repos. However, I didn't add it to pre-commit because it strips out the 3.13 classifier.

hugovk commented 10 months ago

I triggered a test run on main and it also failed with only the exit code:

  python ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --theme $(pwd) --language en --branch 3.12
  shell: /usr/bin/bash -e {0}
  env:
    FORCE_COLOR: 1
    pythonLocation: /opt/hostedtoolcache/Python/3.11.5/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.5/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/lib
Error: Process completed with exit code 70.

https://github.com/python/python-docs-theme/actions/runs/6482294214/job/17601524907

Running the same command passes for me locally.