forked from facebookresearch/balance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (113 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
126 lines (113 loc) · 3.61 KB
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
[build-system]
requires = [
"setuptools>=77",
"setuptools_scm[toml]",
"wheel",
]
build-backend = "setuptools.build_meta"
[project]
name = "balance"
description = "balance is a Python package offering a simple workflow and methods for dealing with biased data samples when looking to infer from them to some target population of interest."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [
{ name = "Facebook, Inc." },
]
keywords = [
"balance",
"statistics",
"bias",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"numpy>=1.21.0,<2.0; python_version<'3.12'",
"numpy>=1.24.0; python_version>='3.12'",
"pandas>=1.5.0,<4.0.0; python_version<'3.12'",
"pandas>=2.0.0,<4.0.0; python_version>='3.12'",
"scipy>=1.7.0,<1.14.0; python_version<'3.12'",
"scipy>=1.11.0; python_version>='3.12'",
"scikit-learn>=1.0.0,<1.4.0; python_version<'3.12'",
"scikit-learn>=1.3.0; python_version>='3.12'",
"ipython",
"patsy",
"seaborn",
"plotly",
"matplotlib",
"statsmodels",
"session-info",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"setuptools_scm",
"wheel",
"pytest",
"pytest-cov",
"coverage",
"sphinx",
"notebook",
"nbconvert",
"pre-commit",
]
[project.urls]
homepage = "https://import-balance.org/"
repository = "https://github.com/facebookresearch/balance"
changelog = "https://github.com/facebookresearch/balance/blob/main/CHANGELOG.md"
[tool.setuptools]
package-data = { "*" = ["*.csv"] }
[tool.setuptools.packages.find]
include = ["balance*"]
[tool.setuptools_scm]
write_to = "version.py"
[tool.ufmt]
formatter = "black"
sorter = "usort"
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.usort]
first_party_detection = false
[tool.pytest.ini_options]
filterwarnings = [
# Ignore third-party deprecation warnings from matplotlib's internal dependencies
"ignore:'oneOf' deprecated:DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'parseString' deprecated:DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'resetCache' deprecated:DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'enablePackrat' deprecated:DeprecationWarning:matplotlib._mathtext",
# Ignore deprecation warnings from matplotlib's internal use of pyparsing
"ignore:'oneOf' deprecated - use 'one_of':DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'parseString' deprecated - use 'parse_string':DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'resetCache' deprecated - use 'reset_cache':DeprecationWarning:matplotlib._fontconfig_pattern",
"ignore:'enablePackrat' deprecated - use 'enable_packrat':DeprecationWarning:matplotlib._mathtext",
]
[tool.coverage.run]
source = ["balance"]
omit = [
"*/tests/*",
"*/test_*.py",
"setup.py",
"version.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == \"__main__\":",
"if TYPE_CHECKING:",
"class [\\w]+\\(Protocol\\):",
"@(abc\\.)?abstractmethod",
]