From bfa725420cc93121870a3a038d204d7f48e5455f Mon Sep 17 00:00:00 2001 From: Nathan Souza Date: Tue, 17 Sep 2024 14:17:48 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adiciona=20pipeline=20de=20qualidade=20?= =?UTF-8?q?de=20c=C3=B3digo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pipeline_lint.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pipeline_lint.yml diff --git a/.github/workflows/pipeline_lint.yml b/.github/workflows/pipeline_lint.yml new file mode 100644 index 0000000..5f4c600 --- /dev/null +++ b/.github/workflows/pipeline_lint.yml @@ -0,0 +1,38 @@ +name: Pipeline de Qualidade de Código +on: + push: + branches: + - teste_pipeline + pull_request: + branches: + - teste_pipeline + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Verificar código + uses: actions/checkout@v4 + + - name: Configurar Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Instalar Poetry + run: pip install poetry + + - name: Instalar dependências + run: poetry install + + - name: Executar ruff check + run: poetry run ruff check . + + - name: Formatando código com ruff + run: poetry run ruff format . + + - name: Verificar formatação com black + run: poetry run black --check . + + - name: Executar bandit + run: poetry run bandit -r . --skip B101 \ No newline at end of file