-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
143 lines (121 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "folktexts"
description = "Use LLMs to get classification risk scores on tabular tasks."
license = {file = "LICENSE"}
# license = {text = "MIT License"}
authors = [
{ name = "Andre Cruz" },
{ name = "Ricardo Dominguez-Olmedo" },
{ name = "Celestine Mendler-Dunner" },
{ name = "Moritz Hardt" },
]
# Keywords to be used by PyPI search
keywords = ["language-model", "risk-estimation", "benchmark", "machine-learning"]
# PyPI classifiers, see https://pypi.org/classifiers/
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
version = "0.0.26"
requires-python = ">=3.8"
dynamic = [
"readme",
"dependencies",
"optional-dependencies",
] # these are defined below dynamically
[tool.setuptools.packages.find]
include = ["folktexts*"]
exclude = ["tests*", "docs*"]
[tool.setuptools.dynamic]
readme = { file = "README.md", content-type="text/markdown" }
# Main package dependencies
dependencies = {file = "requirements/main.txt"}
# Optional dependencies
optional-dependencies.tests = {file = "requirements/tests.txt"}
optional-dependencies.docs = {file = "requirements/docs.txt"}
optional-dependencies.cluster = {file = "requirements/cluster.txt"}
optional-dependencies.apis = {file = "requirements/apis.txt"}
[project.urls]
homepage = "https://github.com/socialfoundations/folktexts"
repository = "https://github.com/socialfoundations/folktexts"
documentation = "https://socialfoundations.github.io/folktexts/"
[project.scripts]
run_acs_benchmark = "folktexts.cli.run_acs_benchmark:main"
download_models = "folktexts.cli.download_models:main"
# flake8
[tool.flake8]
max-complexity = 10
max-line-length = 127
per-file-ignores = """
# imported but unused
__init__.py: F401
"""
exclude = [
"docs/",
".tox/"
]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
]
# isort
[tool.isort]
profile = "hug"
force_single_line = false
src_paths = ["folktexts", "tests"]
# Coverage
[tool.coverage.run]
branch = true
source = ["folktexts"]
omit = ["folktexts/_version.py", "tests"]
[tool.coverage.report]
show_missing = true
# MyPy
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = false
exclude = ["build", "doc"]
# Tox
[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py38
py39
py310
py311
py312
lint
type
[testenv]
description = run unit tests
deps =
pytest>=8
commands = python -m pytest {posargs:tests}
[testenv:lint]
description = run linters
skip_install = true
deps =
flake8>=7.0
flake8-pyproject
commands = flake8 {posargs:folktexts tests}
[testenv:type]
description = run type checks
deps =
mypy>=1.9
commands =
mypy {posargs:folktexts tests}
"""