File tree 2 files changed +8
-6
lines changed
spec/API_specification/dataframe_api
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- name : mypy
1
+ name : lint
2
2
3
3
on :
4
4
pull_request :
5
5
push :
6
6
branches : [main]
7
7
8
8
jobs :
9
- tox :
9
+ lint :
10
10
strategy :
11
11
matrix :
12
12
python-version : ["3.8", "3.11"]
30
30
run : python -m pip install --upgrade mypy typing-extensions ruff
31
31
- name : run mypy
32
32
run : cd spec/API_specification && mypy dataframe_api && mypy examples
33
- - name : run ruff
34
- run : cd spec/API_specification && ruff format dataframe_api examples && ruff dataframe_api examples
33
+ - name : run ruff format
34
+ run : cd spec/API_specification && ruff format dataframe_api examples --diff
35
+ - name : run ruff check
36
+ run : cd spec/API_specification && ruff check dataframe_api examples --no-fix
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ class NullType:
69
69
null : NullType
70
70
71
71
class Datetime :
72
- time_unit : Literal ['ms' , 'us' ]
72
+ time_unit : Literal ["ms" , "us" ]
73
73
time_zone : str | None
74
74
75
75
def __init__ ( # noqa: ANN204
@@ -80,7 +80,7 @@ def __init__( # noqa: ANN204
80
80
...
81
81
82
82
class Duration :
83
- time_unit : Literal ['ms' , 'us' ]
83
+ time_unit : Literal ["ms" , "us" ]
84
84
85
85
def __init__ ( # noqa: ANN204
86
86
self ,
You can’t perform that action at this time.
0 commit comments