-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (79 loc) · 2.09 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.poetry]
name = "timeless"
version = "0.2.7"
description = "Datetime for people in a hurry."
authors = ["ericmiguel <ericmiguel@id.uff.br>"]
keywords = ["datetime", "datetime for humans"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/ericmiguel/timeless"
include = ["timeless/py.typed"]
[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 = ["pandas"]
ignore_missing_imports = true
[tool.poetry.dependencies]
python = "^3.8"
python-dateutil = "^2.8.2"
tzdata = { version = "^2022.6", markers = "sys_platform == 'win32'" }
pandas = { version = "^1.5.1", optional = true }
typing-extensions = "^4.4.0"
backports-zoneinfo = { version = "^0.2.1", python = "<3.9" }
[tool.poetry.extras]
converters = ["pandas"]
[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"
types-python-dateutil = "^0.1.4"
mkdocs = "^1.2.3"
mkdocs-material = "^8.1.10"
autoflake = "^1.7.7"
mkdocstrings = {extras = ["python"], version = "^0.19.0"}
mypy = "^0.990"
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
pandas = "^1.5.1"
[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"