Ferramentas de qualidade configuradas

parent 56d0c98f
[flake8]
max-line-length = 119
exclude = /*/migration/*.py
ignore = W503, E203
- repo: local
hooks:
- id: black
name: "format code with black"
entry: black
language: system
types:
- python
- id: isort
name: "format imports with isort"
entry: isort
language: system
types:
- python
- id: flake8
name: "lint code with flake8"
entry: flake8
language: system
types:
- python
......@@ -16,3 +16,13 @@ pre-commit = "^2.2.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.black]
line-length = 119
[tool.isort]
multi_line_output = 3
include_trailing_coma = true
force_grid_wrap = 0
use_paretheses = true
line_length = 119
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment