File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches : ["main"]
5
5
pull_request :
6
+ schedule :
7
+ - cron : " 0 0 * * *"
6
8
7
9
defaults :
8
10
run :
Original file line number Diff line number Diff line change 36
36
- id : black
37
37
38
38
- repo : https://github.com/charliermarsh/ruff-pre-commit
39
- rev : v0.0.165
39
+ rev : v0.0.185
40
40
hooks :
41
41
- id : ruff
42
42
args : ["--fix"]
Original file line number Diff line number Diff line change @@ -62,13 +62,6 @@ test = [
62
62
" pytest-xdist[psutil]" ,
63
63
" uvicorn"
64
64
]
65
- lint = [
66
- " black>=22.6.0" ,
67
- " mdformat>0.7" ,
68
- " mdformat-gfm>=0.3.5" ,
69
- " ruff>=0.0.156"
70
- ]
71
- typing = [" mypy>=0.990" ]
72
65
73
66
[project .scripts ]
74
67
jupyter-releaser = " jupyter_releaser.cli:main"
@@ -96,12 +89,19 @@ test = "python -m pytest -vv --cov jupyter_releaser --cov-branch --cov-report te
96
89
nowarn = " test -W default {args}"
97
90
98
91
[tool .hatch .envs .typing ]
99
- features = [" typing" , " test" ]
92
+ features = [" test" ]
93
+ dependencies = [" mypy>=0.990" ]
100
94
[tool .hatch .envs .typing .scripts ]
101
95
test = " mypy --install-types --non-interactive {args:jupyter_releaser}"
102
96
103
97
[tool .hatch .envs .lint ]
104
- features = [" lint" ]
98
+ dependencies = [
99
+ " black==22.10.0" ,
100
+ " mdformat>0.7" ,
101
+ " mdformat-gfm>=0.3.5" ,
102
+ " ruff==0.0.185"
103
+ ]
104
+ detached = true
105
105
[tool .hatch .envs .lint .scripts ]
106
106
style = [
107
107
" ruff {args:.}" ,
@@ -198,7 +198,7 @@ ignore = [
198
198
# Line too long
199
199
" E501" ,
200
200
# Relative imports are banned
201
- " I252 " ,
201
+ " TID252 " ,
202
202
# Boolean ... in function definition
203
203
" FBT001" , " FBT002" ,
204
204
# Module level import not at top of file
You can’t perform that action at this time.
0 commit comments