From 546bce2e926285a9e3259c359f700a58ff6842d1 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Chauvel Date: Sun, 16 Mar 2025 16:37:02 -0500 Subject: [PATCH] reformatted some files and add black to pyproject.toml --- .github/workflows/deploy-site.yml | 4 ++++ README.md | 10 ++++++---- pyproject.toml | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 585d61d..38cc567 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -29,16 +29,20 @@ jobs: locale locale -c -k LC_NUMERIC localectl status + - name: Install graphviz run: | sudo apt-get install graphviz nodejs npm + - name: Install Dependencies run: | uv sync npm install + - name: Build Blog run: | uv run poe build + - name: Publish to GitHub Pages uses: peaceiris/actions-gh-pages@v4 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} diff --git a/README.md b/README.md index 286b3c2..0cc79a5 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,13 @@ Install sketchviz npm i ``` -Install `uv`, follow the instructions in their documentation https://docs.astral.sh/uv/getting-started/installation/, -`uv` will handle all the dependencies and the python installation as well. So we don't need to install `python` -separately. +Install `uv`, follow the instructions in their documentation +https://docs.astral.sh/uv/getting-started/installation/, `uv` will handle all +the dependencies and the python installation as well. So we don't need to +install `python` separately. -Then install all the necessary packages (make sure to change to the root directory of the project): +Then install all the necessary packages (make sure to change to the root +directory of the project): ```shell uv sync diff --git a/pyproject.toml b/pyproject.toml index cdfbfad..d724b7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,3 +34,6 @@ dev = [ cmd = "ablog build" # we pass binary defined inside node package so sphinx can called when building the site env = { SKETCHVIZ_BINARY = "./node_modules/.bin/sketchviz" } + +[tool.black] +line-length = 79