@@ -8,22 +8,20 @@ readme = "README.md"
88homepage = " https://pandas.pydata.org"
99repository = " https://github.com/pandas-dev/pandas-stubs"
1010classifiers = [
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" ,
2623]
24+ packages = [{ "include" = " pandas-stubs" }]
2725
2826[tool .poetry .urls ]
2927"Bug Tracker" = " https://github.com/pandas-dev/pandas-stubs/issues"
@@ -33,26 +31,26 @@ packages = [
3331python = " >=3.9"
3432types-pytz = " >= 2022.1.1"
3533numpy = [
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" },
3836]
3937
4038[tool .poetry .group .dev .dependencies ]
41- mypy = " 1.10.0 "
39+ mypy = " 1.10.1 "
4240pandas = " 2.2.2"
4341pyarrow = " >=10.0.1"
4442pytest = " >=7.1.2"
45- pyright = " >=1.1.365 "
43+ pyright = " >=1.1.369 "
4644poethepoet = " >=0.16.5"
4745loguru = " >=0.6.0"
4846typing-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
5048pre-commit = " >=2.19.0"
5149black = " >=23.3.0"
5250isort = " >=5.12.0"
5351openpyxl = " >=3.0.10"
5452# 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
5654lxml = " >=4.9.1"
5755pyreadstat = " >=1.2.0"
5856xlrd = " >=2.0.1"
@@ -88,15 +86,19 @@ script = "scripts.test:test(dist=True)"
8886[tool .poe .tasks .pytest ]
8987help = " Run pytest"
9088script = " 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+ ]
9292
9393[tool .poe .tasks .style ]
9494help = " Run pre-commit"
9595script = " scripts.test.run:style"
9696
9797[tool .poe .tasks .mypy ]
9898help = " 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+ ]
100102script = " scripts.test:mypy_src(mypy_nightly)"
101103
102104[tool .poe .tasks .mypy_dist ]
@@ -114,18 +116,38 @@ script = "scripts.test:test(dist=True, type_checker='pyright')"
114116[tool .poe .tasks .stubtest ]
115117script = " scripts.test:stubtest(allowlist, check_missing, nightly)"
116118help = " 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+ ]
118124
119125
120126[tool .black ]
121127target-version = [' py39' ]
122128
123129[tool .isort ]
124130known_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+ ]
126138known_dtypes = " pandas.core.dtypes"
127139known_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+ ]
129151profile = " black"
130152combine_as_imports = true
131153force_grid_wrap = 2
@@ -142,16 +164,16 @@ follow_imports_for_stubs = false
142164no_site_packages = false
143165no_silence_site_packages = false
144166# 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
150172disallow_subclassing_any = false # TODO
151173# 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
155177check_untyped_defs = true
156178disallow_untyped_decorators = true
157179# None and Optional handling
@@ -161,16 +183,16 @@ strict_optional = true
161183warn_redundant_casts = true
162184warn_unused_ignores = true
163185warn_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
166188# Suppressing errors
167189ignore_errors = false
168190enable_error_code = " ignore-without-code" # same as in pandas
169191# Miscellaneous strictness flags
170192allow_untyped_globals = false
171193allow_redefinition = false
172194local_partial_types = false
173- implicit_reexport = false # pyright behaves the same
195+ implicit_reexport = false # pyright behaves the same
174196strict_equality = true
175197# Configuring error messages
176198show_error_context = false
@@ -181,7 +203,7 @@ show_error_codes = true
181203typeCheckingMode = " strict"
182204stubPath = " ."
183205include = [" tests" , " pandas-stubs" ]
184- enableTypeIgnoreComments = false # use pyright-specific ignores
206+ enableTypeIgnoreComments = false # use pyright-specific ignores
185207# disable subset of strict
186208reportMissingParameterType = false
187209reportMissingTypeArgument = false
0 commit comments