diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 000000000..bcb2d2b33 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,12 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + src: "./fastplotlib" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fddfae5f4..40d39c4f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,6 @@ on: - ready_for_review jobs: - docs-build: name: Docs runs-on: bigmem diff --git a/.gitignore b/.gitignore index 9857fe4b2..c599d5f8c 100644 --- a/.gitignore +++ b/.gitignore @@ -131,4 +131,7 @@ dmypy.json # Pycharm .idea/ +# vs code +.vscode/ + examples/desktop/diffs/*.png diff --git a/setup.py b/setup.py index 2622b1406..a06a879a5 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ "tests": [ "pytest<8.0.0", "nbmake", + "black", "scipy", "imageio[pyav]", "jupyterlab",