From 53bfffb785a0acbbf415b6cd9d43514075ff9e75 Mon Sep 17 00:00:00 2001 From: Mexes Date: Wed, 11 Sep 2024 11:30:59 +0000 Subject: [PATCH] feat: add linter deps to the requirements.txt to run locally --- Scarb.toml | 1 + scripts/data/requirements.txt | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Scarb.toml b/Scarb.toml index 8f063046..df2c01cb 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -8,6 +8,7 @@ regenerate_tests= "./scripts/data/regenerate_tests.sh" integration_tests = "scarb build && ./scripts/data/integration_tests.sh" client= "scarb build && ./scripts/data/client.sh" test = "scarb cairo-test && scarb run integration_tests" +lint = "pip install -r requirements.txt && flake8 scripts/ && black --check scripts/" [dependencies] diff --git a/scripts/data/requirements.txt b/scripts/data/requirements.txt index ef487e06..4ce787d1 100644 --- a/scripts/data/requirements.txt +++ b/scripts/data/requirements.txt @@ -1 +1,4 @@ -requests==2.32.3 \ No newline at end of file +requests==2.32.3 +black==24.8.0 +flake8==7.1.1 +flake8-black==0.3.6 \ No newline at end of file