-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
74 lines (66 loc) · 1.66 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tool.poetry]
name = "peepomap"
version = "0.1.2"
description = "Just some extra Peepo-Powered Matplotlib colormaps."
authors = ["ericmiguel <ericmiguel@id.uff.br>"]
keywords = ["matplotlib", "colormaps"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/ericmiguel/peepomap"
[tool.mypy]
check_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
show_error_codes = true
warn_return_any = true
[[tool.mypy.overrides]]
module = ["matplotlib.*"]
ignore_missing_imports = true
[tool.poetry.dependencies]
python = ">=3.8.0,<3.11"
matplotlib = "^3.5.0"
numpy = "^1.21.4"
[tool.poetry.group.dev.dependencies]
flake8-pyproject = "^1.1.0.post0"
isort = "^5.8.0"
black = "^22.9.0"
pydocstyle = "^6.1.1"
pre-commit = "^2.13.0"
autoflake = "^1.7.7"
mypy = "^0.990"
[tool.isort]
profile = "black"
force_single_line = true
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
use_parentheses = true
src_paths = ["poetry", "tests"]
filter_files = true
known_first_party = "poetry"
[tool.flake8]
max-line-length = 88
max-complexity = 10
exclude = [
".venv",
".git",
"__pycache__",
"*.egg-info",
".pytest_cache",
".mypy_cache"
]
ignore = [ # alertas e erros por conta do black
"E501", # linha longa
"E203", # espaço antes de ':'
"E225", # sem espaço ao redor de operadores
"W503", # quebra de linha antes de um operador binário
"W504" # quebra de linha após um operador binário line
]
[tool.pydocstyle]
convention = "numpy"
add-ignore = "D100,D203"
match = '(?!tests).*\.py'
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"