From 9e208e4130ff2063bcc31405d6ba65bb7c963fc8 Mon Sep 17 00:00:00 2001 From: ltenorio Date: Fri, 6 Sep 2024 10:53:55 +0200 Subject: [PATCH] add ruff check --- .gitlab-ci.yml | 12 +++++++++--- setup.py | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbf169a..dd4017f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,8 @@ before_script: stages: - prepare - - docs + - lint - test - - report - clean @@ -20,7 +19,13 @@ prepare: - conda create -n autosubmit_api python=3.9 - conda install -n autosubmit_api graphviz pytest pytest-cov pytest-mock - conda activate autosubmit_api - - pip install . + - pip install .[all] + +lint: + stage: lint + script: + - conda activate autosubmit_api + - ruff check . test_python3: stage: test @@ -48,6 +53,7 @@ test_python3: # - make html + clean: stage: clean script: diff --git a/setup.py b/setup.py index 7ab919b..8d83ad3 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,8 @@ install_requires = [ # Test dependencies test_requires = [ "pytest", - "pytest-cov" + "pytest-cov", + "ruff" ] extras_require = { -- GitLab