Skip to content

Commit

Permalink
use poetry to run black and install dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Dec 9, 2024
1 parent 0cbc40b commit 200d0f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/lint-and-spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
uses: codespell-project/actions-codespell@v2
with:
exclude_file: poetry.lock


- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dependencies
run: |
poetry install --with dev
- name: Lint files with Black
run: make check-black
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Quickly run black on all python files in this repository, local version of the pre-commit hook
black:
@for file in `find . -name "*.py"`; do \
black $$file; \
poetry run black $$file; \
done

check-black:
black --check . --exclude="dist/*" --exclude="build/*" --exclude="docs/*";
poetry run black --check . --exclude="dist/*" --exclude="build/*" --exclude="docs/*";

# install python dependencies
pythondeps:
Expand Down

0 comments on commit 200d0f3

Please sign in to comment.