From de987ac054504b855adf163cb90d67428dc08cd5 Mon Sep 17 00:00:00 2001 From: Joel Davies Date: Thu, 26 Sep 2024 09:07:19 +0000 Subject: [PATCH] Add black format check to CI --- .github/workflows/.ci.yml | 2 ++ pyproject.toml | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/.ci.yml b/.github/workflows/.ci.yml index ad44204b..4aa21835 100644 --- a/.github/workflows/.ci.yml +++ b/.github/workflows/.ci.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 3020efc7..3f5de97a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",