File tree Expand file tree Collapse file tree 8 files changed +3503
-8
lines changed Expand file tree Collapse file tree 8 files changed +3503
-8
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ keywords = [
48
48
]
49
49
dependencies = [
50
50
" click>=8.0.0,<8.2.0" ,
51
+ " culsans~=0.9.0" ,
51
52
" datasets" ,
52
53
" ftfy>=6.0.0" ,
53
54
" httpx[http2]<1.0.0" ,
@@ -157,15 +158,16 @@ indent-style = "space"
157
158
158
159
[tool .ruff .lint ]
159
160
ignore = [
160
- " PLR0913" ,
161
- " TC001" ,
162
- " COM812" ,
163
- " ISC001" ,
164
- " TC002" ,
161
+ " COM812" , # ignore trailing comma errors due to older Python versions
162
+ " PD011" , # ignore .values usage since ruff assumes it's a Pandas DataFrame
163
+ " PLR0913" , # ignore too many arguments in function definitions
165
164
" PLW1514" , # allow Path.open without encoding
166
165
" RET505" , # allow `else` blocks
167
166
" RET506" , # allow `else` blocks
168
- " PD011" , # ignore .values usage since ruff assumes it's a Pandas DataFrame
167
+ " S311" , # allow standard pseudo-random generators
168
+ " TC001" , # ignore imports used only for type checking
169
+ " TC002" , # ignore imports used only for type checking
170
+ " TC003" , # ignore imports used only for type checking
169
171
]
170
172
select = [
171
173
# Rules reference: https://docs.astral.sh/ruff/rules/
Original file line number Diff line number Diff line change 1
1
from .auto_importer import AutoImporterMixin
2
2
from .colors import Colors
3
3
from .default_group import DefaultGroupHandler
4
+ from .encoding import (
5
+ Encoder ,
6
+ EncodingTypesAlias ,
7
+ MessageEncoding ,
8
+ SerializationTypesAlias ,
9
+ Serializer ,
10
+ )
4
11
from .functions import (
5
12
all_defined ,
6
13
safe_add ,
16
23
from .hf_transformers import (
17
24
check_load_processor ,
18
25
)
26
+ from .messaging import (
27
+ InterProcessMessaging ,
28
+ InterProcessMessagingManagerQueue ,
29
+ InterProcessMessagingPipe ,
30
+ InterProcessMessagingQueue ,
31
+ )
19
32
from .pydantic_utils import (
20
33
PydanticClassRegistryMixin ,
21
34
ReloadableBaseModel ,
49
62
"Colors" ,
50
63
"DefaultGroupHandler" ,
51
64
"DistributionSummary" ,
65
+ "Encoder" ,
66
+ "EncodingTypesAlias" ,
52
67
"EndlessTextCreator" ,
53
68
"IntegerRangeSampler" ,
69
+ "InterProcessMessaging" ,
70
+ "InterProcessMessagingManagerQueue" ,
71
+ "InterProcessMessagingPipe" ,
72
+ "InterProcessMessagingQueue" ,
73
+ "MessageEncoding" ,
54
74
"Percentiles" ,
55
75
"PydanticClassRegistryMixin" ,
56
76
"RegistryMixin" ,
57
77
"ReloadableBaseModel" ,
58
78
"RunningStats" ,
79
+ "SerializationTypesAlias" ,
80
+ "Serializer" ,
59
81
"SingletonMixin" ,
60
82
"StandardBaseDict" ,
61
83
"StandardBaseModel" ,
You can’t perform that action at this time.
0 commit comments