Skip to content

Commit

Permalink
fix app pet_info and flake8 direct in main to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizCampedelli committed Sep 5, 2024
1 parent 2a9cd38 commit cb4e22c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 73 deletions.
6 changes: 3 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]
max-line-length = 88 # Default is 79, you can change this to fit your team's style.
ignore = E203, E266, E501, W503 # You can ignore specific error codes.
max-complexity = 10 # Set the maximum complexity for cyclomatic complexity checks.
max-line-length = 88
ignore = E203, E266, E501, W503
max-complexity = 10
exclude =
.git,
__pycache__,
Expand Down
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

app = Flask(__name__)


@app.route('/')
def index():
return render_template('index.html')


@app.route('/submit', methods=['POST'])
def submit():
# Get form data
Expand Down Expand Up @@ -33,5 +35,6 @@ def submit():
# Render the result page
return render_template('result.html', nome=nome, raca=raca, idade=idade, peso=peso, vacinado=vacinado)


if __name__ == '__main__':
app.run(debug=True)
1 change: 1 addition & 0 deletions pet_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ def coletar_informacoes_pet():
print(f"Peso: {peso} kg")
print(f"Vacinado: {'Sim' if vacinado == 'sim' else 'Não'}")


# Chama a função para coletar e exibir as informações do pet
coletar_informacoes_pet()
70 changes: 0 additions & 70 deletions workflow/deploy.yml

This file was deleted.

0 comments on commit cb4e22c

Please sign in to comment.