@@ -8,22 +8,20 @@ readme = "README.md"
8
8
homepage = " https://pandas.pydata.org"
9
9
repository = " https://github.com/pandas-dev/pandas-stubs"
10
10
classifiers = [
11
- " Development Status :: 5 - Production/Stable" ,
12
- " Environment :: Console" ,
13
- " Intended Audience :: Science/Research" ,
14
- " License :: OSI Approved :: BSD License" ,
15
- " Operating System :: OS Independent" ,
16
- " Programming Language :: Python" ,
17
- " Programming Language :: Python :: 3" ,
18
- " Programming Language :: Python :: 3 :: Only" ,
19
- " Programming Language :: Python :: 3.9" ,
20
- " Programming Language :: Python :: 3.10" ,
21
- " Programming Language :: Python :: 3.11" ,
22
- " Topic :: Scientific/Engineering"
23
- ]
24
- packages = [
25
- { "include" = " pandas-stubs" }
11
+ " Development Status :: 5 - Production/Stable" ,
12
+ " Environment :: Console" ,
13
+ " Intended Audience :: Science/Research" ,
14
+ " License :: OSI Approved :: BSD License" ,
15
+ " Operating System :: OS Independent" ,
16
+ " Programming Language :: Python" ,
17
+ " Programming Language :: Python :: 3" ,
18
+ " Programming Language :: Python :: 3 :: Only" ,
19
+ " Programming Language :: Python :: 3.9" ,
20
+ " Programming Language :: Python :: 3.10" ,
21
+ " Programming Language :: Python :: 3.11" ,
22
+ " Topic :: Scientific/Engineering" ,
26
23
]
24
+ packages = [{ "include" = " pandas-stubs" }]
27
25
28
26
[tool .poetry .urls ]
29
27
"Bug Tracker" = " https://github.com/pandas-dev/pandas-stubs/issues"
@@ -33,26 +31,26 @@ packages = [
33
31
python = " >=3.9"
34
32
types-pytz = " >= 2022.1.1"
35
33
numpy = [
36
- { version = " >=1.23.5" , python = " >=3.9,<3.12" },
37
- { version = " >=1.26 .0" , python = " >=3.12,<3.13" }
34
+ { version = " >=1.23.5,<2.0.0 " , python = " >=3.9,<3.12" },
35
+ { version = " >=2.0 .0" , python = " >=3.12,<3.13" },
38
36
]
39
37
40
38
[tool .poetry .group .dev .dependencies ]
41
- mypy = " 1.10.0 "
39
+ mypy = " 1.10.1 "
42
40
pandas = " 2.2.2"
43
41
pyarrow = " >=10.0.1"
44
42
pytest = " >=7.1.2"
45
- pyright = " >=1.1.365 "
43
+ pyright = " >=1.1.369 "
46
44
poethepoet = " >=0.16.5"
47
45
loguru = " >=0.6.0"
48
46
typing-extensions = " >=4.4.0"
49
- matplotlib = " >=3.5.1,<3.9.0" # TODO https://github.com/pandas-dev/pandas/issues/58851
47
+ matplotlib = " >=3.5.1,<3.9.0" # TODO https://github.com/pandas-dev/pandas/issues/58851
50
48
pre-commit = " >=2.19.0"
51
49
black = " >=23.3.0"
52
50
isort = " >=5.12.0"
53
51
openpyxl = " >=3.0.10"
54
52
# for tables, MacOS gives random CI failures on 3.9.2
55
- tables = { version = " ==3.9.2" , python = " <4" } # 3.8.0 depends on blosc2 which caps python to <4
53
+ tables = { version = " ==3.9.2" , python = " <4" } # 3.8.0 depends on blosc2 which caps python to <4
56
54
lxml = " >=4.9.1"
57
55
pyreadstat = " >=1.2.0"
58
56
xlrd = " >=2.0.1"
@@ -88,15 +86,19 @@ script = "scripts.test:test(dist=True)"
88
86
[tool .poe .tasks .pytest ]
89
87
help = " Run pytest"
90
88
script = " scripts.test:pytest(nightly)"
91
- args = [{name = " nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Use pandas nightly (off by default)" }]
89
+ args = [
90
+ { name = " nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Use pandas nightly (off by default)" },
91
+ ]
92
92
93
93
[tool .poe .tasks .style ]
94
94
help = " Run pre-commit"
95
95
script = " scripts.test.run:style"
96
96
97
97
[tool .poe .tasks .mypy ]
98
98
help = " Run mypy on 'tests' (using the local stubs) and on the local stubs"
99
- args = [{name = " mypy_nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Use mypy nightly (off by default)" }]
99
+ args = [
100
+ { name = " mypy_nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Use mypy nightly (off by default)" },
101
+ ]
100
102
script = " scripts.test:mypy_src(mypy_nightly)"
101
103
102
104
[tool .poe .tasks .mypy_dist ]
@@ -114,18 +116,38 @@ script = "scripts.test:test(dist=True, type_checker='pyright')"
114
116
[tool .poe .tasks .stubtest ]
115
117
script = " scripts.test:stubtest(allowlist, check_missing, nightly)"
116
118
help = " Run stubtest to compare the installed stubs against pandas"
117
- args = [{ name = " allowlist" , positional = true , default = " " , required = false , help = " Path to an allowlist (optional)" }, {name = " check_missing" , positional = false , default = false , type = " boolean" , required = false , help = " Report errors when the stubs are incomplete (off by default)" }, {name = " nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Compare against pandas nightly (off by default)" }]
119
+ args = [
120
+ { name = " allowlist" , positional = true , default = " " , required = false , help = " Path to an allowlist (optional)" },
121
+ { name = " check_missing" , positional = false , default = false , type = " boolean" , required = false , help = " Report errors when the stubs are incomplete (off by default)" },
122
+ { name = " nightly" , positional = false , default = false , type = " boolean" , required = false , help = " Compare against pandas nightly (off by default)" },
123
+ ]
118
124
119
125
120
126
[tool .black ]
121
127
target-version = [' py39' ]
122
128
123
129
[tool .isort ]
124
130
known_pre_libs = " pandas._config"
125
- known_pre_core = [" pandas._libs" , " pandas._typing" , " pandas.util._*" , " pandas.compat" , " pandas.errors" ]
131
+ known_pre_core = [
132
+ " pandas._libs" ,
133
+ " pandas._typing" ,
134
+ " pandas.util._*" ,
135
+ " pandas.compat" ,
136
+ " pandas.errors" ,
137
+ ]
126
138
known_dtypes = " pandas.core.dtypes"
127
139
known_post_core = [" pandas.tseries" , " pandas.io" , " pandas.plotting" ]
128
- sections = [" FUTURE" , " STDLIB" , " THIRDPARTY" ," PRE_LIBS" , " PRE_CORE" , " DTYPES" , " FIRSTPARTY" , " POST_CORE" , " LOCALFOLDER" ]
140
+ sections = [
141
+ " FUTURE" ,
142
+ " STDLIB" ,
143
+ " THIRDPARTY" ,
144
+ " PRE_LIBS" ,
145
+ " PRE_CORE" ,
146
+ " DTYPES" ,
147
+ " FIRSTPARTY" ,
148
+ " POST_CORE" ,
149
+ " LOCALFOLDER" ,
150
+ ]
129
151
profile = " black"
130
152
combine_as_imports = true
131
153
force_grid_wrap = 2
@@ -142,16 +164,16 @@ follow_imports_for_stubs = false
142
164
no_site_packages = false
143
165
no_silence_site_packages = false
144
166
# Disallow dynamic typing
145
- disallow_any_unimported = false # TODO
146
- disallow_any_expr = false # TODO
147
- disallow_any_decorated = false # TODO
148
- disallow_any_explicit = false # TODO
149
- disallow_any_generics = false # TODO
167
+ disallow_any_unimported = false # TODO
168
+ disallow_any_expr = false # TODO
169
+ disallow_any_decorated = false # TODO
170
+ disallow_any_explicit = false # TODO
171
+ disallow_any_generics = false # TODO
150
172
disallow_subclassing_any = false # TODO
151
173
# Untyped definitions and calls
152
- disallow_untyped_calls = false # TODO
153
- disallow_untyped_defs = false # TODO
154
- disallow_incomplete_defs = false # TODO
174
+ disallow_untyped_calls = false # TODO
175
+ disallow_untyped_defs = false # TODO
176
+ disallow_incomplete_defs = false # TODO
155
177
check_untyped_defs = true
156
178
disallow_untyped_decorators = true
157
179
# None and Optional handling
@@ -161,16 +183,16 @@ strict_optional = true
161
183
warn_redundant_casts = true
162
184
warn_unused_ignores = true
163
185
warn_no_return = true
164
- warn_return_any = false # TODO
165
- warn_unreachable = false # GH#27396
186
+ warn_return_any = false # TODO
187
+ warn_unreachable = false # GH#27396
166
188
# Suppressing errors
167
189
ignore_errors = false
168
190
enable_error_code = " ignore-without-code" # same as in pandas
169
191
# Miscellaneous strictness flags
170
192
allow_untyped_globals = false
171
193
allow_redefinition = false
172
194
local_partial_types = false
173
- implicit_reexport = false # pyright behaves the same
195
+ implicit_reexport = false # pyright behaves the same
174
196
strict_equality = true
175
197
# Configuring error messages
176
198
show_error_context = false
@@ -181,7 +203,7 @@ show_error_codes = true
181
203
typeCheckingMode = " strict"
182
204
stubPath = " ."
183
205
include = [" tests" , " pandas-stubs" ]
184
- enableTypeIgnoreComments = false # use pyright-specific ignores
206
+ enableTypeIgnoreComments = false # use pyright-specific ignores
185
207
# disable subset of strict
186
208
reportMissingParameterType = false
187
209
reportMissingTypeArgument = false
0 commit comments