Skip to content

Commit

Permalink
feat(ci): add Black code formatter and enable linting
Browse files Browse the repository at this point in the history
- Add Black to the pip install command alongside flake8
- Uncomment and update the linting step to use Black for code style checking
- Replace flake8 linting with Black's --check option

This change enhances the CI pipeline by introducing code formatting checks,
ensuring consistent code style across the project.
  • Loading branch information
elkanamol committed Sep 8, 2024
1 parent 5ef9ff1 commit 5e5820f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8
pip install flake8 black
# - name: Run linting
# run: flake8 .
- name: Run linting
run: black --check .

- name: Run tests with unittest
id: run-tests
Expand Down

0 comments on commit 5e5820f

Please sign in to comment.