File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 3
3
autofix_prs : false
4
4
repos :
5
5
- repo : https://github.com/python/black
6
- rev : 23.7.0
6
+ rev : 23.9.1
7
7
hooks :
8
8
- id : black
9
9
- repo : https://github.com/PyCQA/isort
10
10
rev : 5.12.0
11
11
hooks :
12
12
- id : isort
13
13
- repo : https://github.com/astral-sh/ruff-pre-commit
14
- rev : v0.0.286
14
+ rev : v0.0.291
15
15
hooks :
16
16
- id : ruff
17
17
args : [
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ mypy = "1.5.1"
39
39
pandas = " 2.1.1"
40
40
pyarrow = " >=10.0.1"
41
41
pytest = " >=7.1.2"
42
- # pyright 1.1.327 has bug fixed in 1.1.328
43
- pyright = " 1.1.326 "
42
+ # pyright 1.1.329 has bug fixed in 1.1.330
43
+ pyright = " 1.1.328 "
44
44
poethepoet = " >=0.16.5"
45
45
loguru = " >=0.6.0"
46
46
typing-extensions = " >=4.4.0"
@@ -62,7 +62,6 @@ jinja2 = ">=3.1"
62
62
scipy = { version = " >=1.9.1" , python = " <3.13" }
63
63
SQLAlchemy = " >=2.0.12"
64
64
types-python-dateutil = " >=2.8.19"
65
- numexpr = " <2.8.5" # https://github.com/pandas-dev/pandas/issues/54449
66
65
67
66
[build-system ]
68
67
requires = [" poetry-core>=1.0.0" ]
Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ def nightly_mypy():
119
119
"pip" ,
120
120
"install" ,
121
121
"--upgrade" ,
122
- "git+https://github.com/python/mypy.git" ,
122
+ "--find-links" ,
123
+ "https://github.com/mypyc/mypy_mypyc-wheels/releases/" ,
124
+ "mypy" ,
123
125
]
124
126
subprocess .run (cmd , check = True )
125
127
Original file line number Diff line number Diff line change @@ -118,8 +118,7 @@ def test_xml():
118
118
119
119
def test_xml_str ():
120
120
with ensure_clean () as path :
121
- check (assert_type (DF .to_xml (), str ), str )
122
- out : str = DF .to_xml ()
121
+ out = check (assert_type (DF .to_xml (), str ), str )
123
122
check (assert_type (read_xml (io .StringIO (out )), DataFrame ), DataFrame )
124
123
125
124
@@ -136,9 +135,8 @@ def test_pickle():
136
135
def test_pickle_file_handle ():
137
136
with ensure_clean () as path :
138
137
check (assert_type (DF .to_pickle (path ), None ), type (None ))
139
- file = open (path , "rb" )
140
- check (assert_type (read_pickle (file ), Any ), DataFrame )
141
- file .close ()
138
+ with open (path , "rb" ) as file :
139
+ check (assert_type (read_pickle (file ), Any ), DataFrame )
142
140
143
141
144
142
def test_pickle_path ():
You can’t perform that action at this time.
0 commit comments