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:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents:
|
||||
|
2
.github/workflows/ui-tests.yml
vendored
2
.github/workflows/ui-tests.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
|
||||
ui-tests:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -29,7 +29,7 @@ repos:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.165
|
||||
rev: v0.0.185
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: ["--fix"]
|
||||
|
@ -74,14 +74,6 @@ dev = [
|
||||
"pre-commit",
|
||||
"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]
|
||||
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}"
|
||||
|
||||
[tool.hatch.envs.typing]
|
||||
features = ["typing", "test"]
|
||||
features = ["test"]
|
||||
dependencies = ["mypy>=0.990"]
|
||||
[tool.hatch.envs.typing.scripts]
|
||||
test = "mypy --install-types --non-interactive {args:notebook tests}"
|
||||
|
||||
[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]
|
||||
style = [
|
||||
"ruff {args:notebook}",
|
||||
"ruff {args:notebook tests ui-tests}",
|
||||
"black --check --diff {args:.}",
|
||||
"mdformat --check {args:CHANGELOG.md}"
|
||||
]
|
||||
|
@ -2,13 +2,13 @@ from tempfile import mkdtemp
|
||||
from typing import Any
|
||||
|
||||
c: Any
|
||||
c.ServerApp.port = 8888
|
||||
c.ServerApp.port_retries = 0
|
||||
c.ServerApp.open_browser = False
|
||||
c.ServerApp.port = 8888 # noqa
|
||||
c.ServerApp.port_retries = 0 # noqa
|
||||
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.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