jupyter / jupyter-sphinx

Sphinx extension for rendering of Jupyter interactive widgets.
https://jupyter-sphinx.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
187 stars 65 forks source link

Add pre-commit with various linters and static code checkers #206

Closed basnijholt closed 2 years ago

basnijholt commented 2 years ago

This adds pre-commit with black, isort, pyupgrade, and a few other nice to haves with a new Github Action that runs pre-commit.

The only changes I made manually are in https://github.com/jupyter/jupyter-sphinx/pull/206/commits/7f35bea0a2123d7e7315a4411992751141751d83 (which also include a few automatically made changes by isort).