-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
153 lines (131 loc) · 3.18 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[tool.poetry]
name = "pandera-report"
version = "0.1.2"
description = "Pandera Report for row-based reporting by using the power of pandera."
authors = ["Pit Nahrstedt <pit.nahrstedt@outlook.de>"]
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
]
readme = "README.md"
packages = [{include = "pandera_report"}]
[tool.poetry.urls]
Homepage = "https://github.com/Luanee/pandera-report"
[tool.poetry.dependencies]
python = "^3.9, <3.13"
pandas = "^2.2.3"
pandera = "^0.20.4"
numpy = "^1.26.4"
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
pre-commit = "^3.8.0"
isort = "^5.13.2"
pylint = "^3.3.1"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
autoflake = "^2.3.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
color=true
line-length = 120
[tool.isort]
profile = "black"
line_length = 120
color_output = true
combine_as_imports = true
ensure_newline_before_comments = true
force_alphabetical_sort_within_sections = true
force_grid_wrap = 3
include_trailing_comma = true
lines_between_sections = 1
multi_line_output = 3
use_parentheses = true
skip_gitignore = true
skip = [
".coverage",
"coverage/*",
"cov.html",
".dockerignore",
".env",
".github",
".gitignore",
".html",
".md",
".python-version",
".rst",
".xml"
]
src_paths = [
"pandera_report/",
"tests/",
]
[tool.pytest.ini_options]
minversion = "7.0"
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test", "Acceptance"]
python_functions = ["test_*"]
testpaths = ["tests"]
filterwarnings = ["ignore::UserWarning"]
addopts = '''
--cov=pandera_report
--cov-report=xml:coverage/coverage.xml
--cov-report term-missing:skip-covered
'''
[tool.coverage.report]
skip_empty = true
show_missing = true
ignore_errors = true
exclude_lines = [
"@abstractmethod",
"@abc.abstractmethod",
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
fail_under=80
[tool.coverage.run]
branch = true
disable_warnings = ["ignore::UserWarning"]
source = ["pandera_report", "tests"]
[tool.coverage.html]
directory = "coverage"
[tool.pylint.MASTER]
ignore-patterns = 'tests/,test_(.)*\.py,conftest.py'
[tool.pylint.BASIC]
# Good variable names which should always be accepted, separated by a comma.
good-names = """
i,j,k,
id,_
"""
[tool.pylint.MESSAGES_CONTROL]
disable = """
arguments-differ,
duplicate-code,
function-redefined,
import-outside-toplevel,
inconsistent-return-statements,
invalid-name,
line-too-long,
no-else-return,
protected-access,
too-few-public-methods,
too-many-ancestors,
too-many-instance-attributes,
too-many-lines,
ungrouped-imports,
unnecessary-dunder-call,
use-dict-literal,
missing-module-docstring
"""
extension-pkg-whitelist = "pydantic"