Skip to content

Commit

Permalink
fix: ajustes do flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Euclécio Josias Rodrigues authored and Euclécio Josias Rodrigues committed Nov 23, 2020
1 parent d304acd commit 9858df3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
exclude = .git,__pycache__,.venv
max-complexity = 5
max-complexity = 10
max-line-length = 120

verbose = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/fixture/flake8.log
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
./python/scripts/main.py:33:28: E711 comparison to None should be 'if cond is None:'
./python/scripts/main.py:40:22: F841 local variable 'datetime_object' is assigned to but never used
./python/scripts/main.py:48:0: W292 no newline at end of file
./python/scripts/main.py:52:13: W291 trailing whitespace
./python/scripts/main.py:52:13: W291 trailing whitespace
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import tempfile
import pytest
import json
from unittest.mock import MagicMock
from src import main
from github.GithubException import UnknownObjectException
Expand Down Expand Up @@ -131,6 +130,7 @@ def test_build_comment_with_1_error_0_warning_found():
assert '### Foi encontrado 1 erro.\n' in comment
assert '### Nenhum aviso foi encontrado.\n' in comment


def test_build_comment_with_0_error_1_warning_found():
feedback = {
'error': {
Expand Down

0 comments on commit 9858df3

Please sign in to comment.