Skip to content

Commit

Permalink
deploy: Introduce Black Formatting Check in CI Workflow.
Browse files Browse the repository at this point in the history
Added `.github/workflows/black.yml` to run Black's code formatting check on
push and pull requests. The workflow sets up Python, installs Black, and runs
`black --check .` to ensure code adheres to standard formatting guidelines.

Issue: #105

Signedoff-by: Nikolay Martyanov <[email protected]>
  • Loading branch information
OhmSpectator committed Nov 29, 2023
1 parent fa47287 commit bd9eb03
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Python Black Check

on: [push, pull_request]

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install Black
run: pip install black
- name: Check Python code formatting with Black
run: black --check .

0 comments on commit bd9eb03

Please sign in to comment.