mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-21 01:11:21 +08:00
parent
22475a39ab
commit
48fb973071
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: ['main']
|
branches: ['main']
|
||||||
pull_request:
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents:
|
contents:
|
||||||
|
2
.github/workflows/ui-tests.yml
vendored
2
.github/workflows/ui-tests.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
ui-tests:
|
ui-tests:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -29,7 +29,7 @@ repos:
|
|||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.165
|
rev: v0.0.185
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: ["--fix"]
|
args: ["--fix"]
|
||||||
|
@ -74,14 +74,6 @@ dev = [
|
|||||||
"pre-commit",
|
"pre-commit",
|
||||||
"hatch"
|
"hatch"
|
||||||
]
|
]
|
||||||
lint = [
|
|
||||||
"black[jupyter]>=22.6.0",
|
|
||||||
"mdformat>0.7",
|
|
||||||
"mdformat-gfm>=0.3.5",
|
|
||||||
"ruff>=0.0.156"
|
|
||||||
]
|
|
||||||
typing = ["mypy>=0.990"]
|
|
||||||
|
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
path = "notebook/_version.py"
|
path = "notebook/_version.py"
|
||||||
@ -139,15 +131,22 @@ test = "python -m pytest -vv --cov notebook --cov-branch --cov-report term-missi
|
|||||||
nowarn = "test -W default {args}"
|
nowarn = "test -W default {args}"
|
||||||
|
|
||||||
[tool.hatch.envs.typing]
|
[tool.hatch.envs.typing]
|
||||||
features = ["typing", "test"]
|
features = ["test"]
|
||||||
|
dependencies = ["mypy>=0.990"]
|
||||||
[tool.hatch.envs.typing.scripts]
|
[tool.hatch.envs.typing.scripts]
|
||||||
test = "mypy --install-types --non-interactive {args:notebook tests}"
|
test = "mypy --install-types --non-interactive {args:notebook tests}"
|
||||||
|
|
||||||
[tool.hatch.envs.lint]
|
[tool.hatch.envs.lint]
|
||||||
features = ["lint"]
|
dependencies = [
|
||||||
|
"black[jupyter]>=22.6.0",
|
||||||
|
"mdformat>0.7",
|
||||||
|
"mdformat-gfm>=0.3.5",
|
||||||
|
"ruff>=0.0.156"
|
||||||
|
]
|
||||||
|
detached = true
|
||||||
[tool.hatch.envs.lint.scripts]
|
[tool.hatch.envs.lint.scripts]
|
||||||
style = [
|
style = [
|
||||||
"ruff {args:notebook}",
|
"ruff {args:notebook tests ui-tests}",
|
||||||
"black --check --diff {args:.}",
|
"black --check --diff {args:.}",
|
||||||
"mdformat --check {args:CHANGELOG.md}"
|
"mdformat --check {args:CHANGELOG.md}"
|
||||||
]
|
]
|
||||||
|
@ -2,13 +2,13 @@ from tempfile import mkdtemp
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
c: Any
|
c: Any
|
||||||
c.ServerApp.port = 8888
|
c.ServerApp.port = 8888 # noqa
|
||||||
c.ServerApp.port_retries = 0
|
c.ServerApp.port_retries = 0 # noqa
|
||||||
c.ServerApp.open_browser = False
|
c.ServerApp.open_browser = False # noqa
|
||||||
|
|
||||||
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-")
|
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-") # noqa
|
||||||
c.ServerApp.token = "" # noqa
|
c.ServerApp.token = "" # noqa
|
||||||
c.ServerApp.password = "" # noqa
|
c.ServerApp.password = "" # noqa
|
||||||
c.ServerApp.disable_check_xsrf = True
|
c.ServerApp.disable_check_xsrf = True # noqa
|
||||||
|
|
||||||
c.JupyterNotebookApp.expose_app_in_browser = True
|
c.JupyterNotebookApp.expose_app_in_browser = True # noqa
|
||||||
|
Loading…
Reference in New Issue
Block a user