From 45b5b7132f1bc56107c3aabf4473f0cc987aee08 Mon Sep 17 00:00:00 2001 From: anipaul2 Date: Tue, 25 Jul 2023 16:46:32 +0530 Subject: [PATCH] Use black for `.py` files formatting --- .github/workflows/build.yaml | 10 +++++++++- .gitignore | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b1b91fe4..5e0d9d7d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,4 +46,12 @@ jobs: cargo fmt --verbose --check -- --color always - name: Run clippy run: | - cargo clippy --all-features --all-targets --color always -- --deny warnings \ No newline at end of file + cargo clippy --all-features --all-targets --color always -- --deny warnings + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install black + run: pip install black + - name: Check Python formatting + run: black . --check -l 120 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3b7e0f70..481e175e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ target __pycache__ .vscode -.idea \ No newline at end of file +.idea +.DS_Store \ No newline at end of file