generated from allenai/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
186 lines (168 loc) · 3.59 KB
/
pyproject.toml
File metadata and controls
186 lines (168 loc) · 3.59 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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
[project]
name = "smashed"
version = "0.21.5"
description = """\
SMASHED is a toolkit designed to apply transformations to samples in \
datasets, such as fields extraction, tokenization, prompting, batching, \
and more. Supports datasets from Huggingface, torchdata iterables, or \
simple lists of dictionaries.\
"""
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"necessary>=0.4.3",
"trouting>=0.3.3",
"ftfy>=6.1.1",
"platformdirs>=2.5.0",
"glom>=21.0.0",
"Jinja2>=3.0.3",
"numpy>=1.19.5"
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = [
"mappers",
"pytorch",
"torch",
"huggingface",
"transformers",
"datasets",
"dict",
"pipeline",
"preprocessing",
"nlp",
"natural language processing",
"text",
"prompting",
"prefix tuning",
"in context learning"
]
[[project.authors]]
name = "Allen Institute for Artificial Intelligence"
email = "contact@allenai.org"
[[project.authors]]
name = "Luca Soldaini"
email = "luca@soldaini.net"
[[project.authors]]
name = "Kyle Lo"
email = "kylel@allenai.org"
[[project.maintainers]]
name = "Luca Soldaini"
email = "luca@soldaini.net"
[project.urls]
"Homepage" = "https://github.com/allenai/smashed"
"Repository" = "https://github.com/allenai/smashed"
"Bug Tracker" = "https://github.com/allenai/smashed/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
smashed = ["py.typed", "../requirements.txt"]
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"pip >= 21.0.0",
"wheel"
]
[project.optional-dependencies]
dev = [
"black[jupyter]>=21.12b0",
"isort>=5.8.0",
"mypy>=0.971",
"pytest>=5.2",
"ipython>=8.4.0",
"autopep8>=1.7.0",
"flake8>=5.0",
"ipdb>=0.13.0",
"flake8-pyi>=22.8.1",
"Flake8-pyproject>=1.1.0",
"moto[ec2,s3,all] >= 4.0.0",
]
remote = [
"smart-open>=5.2.1",
"boto3>=1.25.5",
]
torch = [
"torch>=1.9",
]
datasets = [
"smashed[torch]",
"transformers>=4.5",
"datasets>=2.8.0",
"dill>=0.3.0",
]
prompting = [
"smashed[torch]",
"transformers>=4.5",
"promptsource>=0.2.3",
"blingfire>=0.1.8",
]
torchdata = [
"torch>=1.13.1",
"torchdata>=0.5.1"
]
all = [
"smashed[dev]",
"smashed[torch]",
"smashed[datasets]",
"smashed[torchdata]",
"smashed[remote]",
"smashed[prompting]",
]
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
(
__pycache__
| \.git
| \.mypy_cache
| \.pytest_cache
| \.vscode
| \.venv
| \bdist\b
| \bdoc\b
)
'''
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
[tool.autopep8]
max_line_length = 79
in-place = true
recursive = true
aggressive = 3
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
no_site_packages = true
allow_redefinition = false
[tool.mypy-tests]
strict_optional = false
[tool.flake8]
exclude = [
".venv/",
"tmp/"
]
per-file-ignores = [
'*.py:E203',
'__init__.py:F401',
'*.pyi:E302,E305'
]
[tool.pytest.ini_options]
testpaths = ["tests/"]
python_classes = ["Test*", "*Test"]
log_format = "%(asctime)s - %(levelname)s - %(name)s - %(message)s"
log_level = "DEBUG"
markers = []
filterwarnings = []