Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll committed Sep 13, 2024
1 parent 860d860 commit bdbd036
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Install pandoc
run: sudo apt install pandoc
- name: Install Flower dependencies (mandatory only)
run: python -m poetry install --extras "simulation"
run: |
python -m poetry install --extras "simulation"
python -m pip install ./dev
- name: Install Flower Datasets
run: |
cd datasets
Expand Down
2 changes: 1 addition & 1 deletion dev/check-protos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../
# but did not recompile or commit the new proto python files

# Recompile protos
python -m flwr_tool.protoc
flwr-dev compile-protos

# Fail if user forgot to recompile
CHANGED=$(git diff --name-only HEAD src/py/flwr/proto)
Expand Down
6 changes: 3 additions & 3 deletions dev/test-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/../

echo "=== test-tool.sh ==="

python -m isort --check-only src/py/flwr_tool && echo "- isort: done" &&
python -m black --check src/py/flwr_tool && echo "- black: done" &&
python -m isort --check-only dev/flwr_dev && echo "- isort: done" &&
python -m black --check dev/flwr_dev && echo "- black: done" &&
# mypy is covered by test.sh
python -m pylint src/py/flwr_tool && echo "- pylint: done" &&
python -m pylint dev/flwr_dev && echo "- pylint: done" &&
# python -m pytest -q src/py/flwr_tool && echo "- pytest: done" &&
echo "- All Python checks passed"

0 comments on commit bdbd036

Please sign in to comment.