-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (85 loc) · 2.34 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
89
90
91
92
93
94
95
96
97
98
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.black]
line-length = 99
[tool.poetry]
authors = [
"Denis Rosset <[email protected]>",
]
description = "Tybles: simple schemas for Pandas dataframes"
license = "BSD-3-Clause"
name = "tybles"
readme = "README.md"
repository = "https://github.com/denisrosset/tybles.git"
version = "0.3.1"
[tool.poetry.dependencies]
numpy = "^1.22.3"
pandas = "^1.2.4"
python = "^3.8,<3.11"
beartype = {version = "^0.10.4", optional = true}
ipykernel = {version = "^6.13.0", optional = true}
myst-nb = {version = "^0.13.2", optional = true}
pygments-csv-lexer = {version = "^0.1.3", optional = true}
sphinx = {version = "4.3.2", optional = true}
sphinx-autodoc-typehints = {version = "^1.17.0", optional = true}
sphinx-book-theme = {version = "^0.2.0", optional = true}
typeguard = {version = "^2.13.3", optional = true}
[tool.poetry.extras]
docs = [
"myst-nb",
"sphinx",
"sphinx-autodoc-typehints",
"sphinx-book-theme",
"pygments-csv-lexer",
"ipykernel",
]
beartype = ["beartype"]
typeguard = ["typeguard"]
[tool.poetry.dev-dependencies]
black = "^22.1.0"
commitizen = "^2.21.2"
doc8 = "^0.10.1"
esbonio = "^0.10.2"
isort = "^5.10.1"
mypy = "^0.941"
pandas-stubs = "^1.2.0.43"
pylint = "^2.13.5"
pytest = "^7.0.1"
rstcheck = "^3.3.1"
[mypy]
plugins = ["numpy.typing.mypy_plugin"]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
# super strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_none_errors = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
[tool.pytest.ini_options]
addopts = [
"--tb=short",
"-s", # show test "print" statements
]
[tool.pylint.BASIC]
argument-rgx = "[a-z_][a-z0-9_]?{1,30}$"
class-attribute-rgx = "[a-z_][a-z0-9_]?{1,30}$"
variable-rgx = "[a-z_][a-z0-9_]?{1,30}$"
[tool.pylint.messages_control]
disable = [
"assignment-from-none", # this is caught by mypy and has false positives
"no-value-for-parameter", # this is caught by mypy and has false positives
"unused-argument", # happens quite often in OOP hierarchies
]