[UPD+FIX] Atualizando as bibliotecas do Pre-commit e corrigido conflito entre validações #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ao verificar o problema dos PRs #44 e #45 acabei rodando o comando do pre-commit localmente para manter o padrão do código, acabei vendo que estava retornando um erro E203 e procurei atualizar as bibliotecas para ver se resolvia, mas na verdade existe um conflito entre as bibliotecas Black e Flake8
https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
This behaviour may raise E203 whitespace before ':' warnings in style guide enforcement tools like Flake8. Since E203 is not PEP 8 compliant, you should tell Flake8 to ignore these warnings.
https://www.flake8rules.com/rules/E203.html
https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html
Então nesse PR estou atualizando as Libs, corrigindo esse conflito e ao rodar o comando pre-commit acaba refatorando algumas partes do código, com isso o pre-commit passou a rodar sem erros pelo menos localmente, é preciso verificar se vai precisar mais alterações aqui no github.
cc @renatonlima @rvalyi @marcelsavegnago @mileo