Skip to content

Commit

Permalink
Add black format check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Sep 26, 2024
1 parent ae44f67 commit de987ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[code-analysis]
- name: Run black
run: black --check --line-length 120 inventory_management_system_api test
- name: Run pylint
run: pylint inventory_management_system_api test

Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ dependencies = [

[project.optional-dependencies]
code-analysis = [
"black==24.8.0",
"pylint==3.2.7",
"inventory-management-system-api[test]"
]

formatting = [
"black==24.8.0"
]

test = [
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
Expand Down

0 comments on commit de987ac

Please sign in to comment.