Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.11.3
uses: actions/setup-python@v2
with:
python-version: 3.11.3
uses: actions/checkout@v4

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
run: pipx install poetry

- name: Install dependencies with poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
cache: poetry

- name: Install Dependencies
run: poetry install

- name: Lintting and Formmating Test
uses: pre-commit/action@v3.0.1

- name: Run pytest
run: poetry run pytest
17 changes: 6 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.3.0
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort

Expand All @@ -22,12 +22,7 @@ repos:
hooks:
- id: pydocstyle

- repo: local
- repo: https://github.com/pypa/pip-audit
rev: v2.7.2
hooks:
- id: pip-audit
name: pip-audit
entry: pip-audit
args: []
language: system
pass_filenames: false
types: [python] # Opcional: se você quiser que isso seja executado apenas quando arquivos Python forem alterados.
1 change: 0 additions & 1 deletion app/utils/absenteeism_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""modulo que gera dados de exemplo para testes."""


import random

import pandas as pd
Expand Down
Loading