Skip to content

Commit 7c464a6

Browse files
authored
ci cleanup (#478)
1 parent bd58939 commit 7c464a6

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches: ["main"]
55
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
68

79
defaults:
810
run:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636
- id: black
3737

3838
- repo: https://github.com/charliermarsh/ruff-pre-commit
39-
rev: v0.0.165
39+
rev: v0.0.185
4040
hooks:
4141
- id: ruff
4242
args: ["--fix"]

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ test = [
6262
"pytest-xdist[psutil]",
6363
"uvicorn"
6464
]
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"]
7265

7366
[project.scripts]
7467
jupyter-releaser = "jupyter_releaser.cli:main"
@@ -96,12 +89,19 @@ test = "python -m pytest -vv --cov jupyter_releaser --cov-branch --cov-report te
9689
nowarn = "test -W default {args}"
9790

9891
[tool.hatch.envs.typing]
99-
features = ["typing", "test"]
92+
features = ["test"]
93+
dependencies = ["mypy>=0.990"]
10094
[tool.hatch.envs.typing.scripts]
10195
test = "mypy --install-types --non-interactive {args:jupyter_releaser}"
10296

10397
[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
105105
[tool.hatch.envs.lint.scripts]
106106
style = [
107107
"ruff {args:.}",
@@ -198,7 +198,7 @@ ignore = [
198198
# Line too long
199199
"E501",
200200
# Relative imports are banned
201-
"I252",
201+
"TID252",
202202
# Boolean ... in function definition
203203
"FBT001", "FBT002",
204204
# Module level import not at top of file

0 commit comments

Comments
 (0)