Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 18, 2022
1 parent b54203e commit 1f3f3a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps::
pip install --upgrade setuptools pip
git clone https://github.com/jupyter/jupyter_server
cd jupyter_server
pip install -e ".[test]"
pip install -e ".[dev,test]"

If you are using a system-wide Python installation and you only want to install the server for you,
you can add ``--user`` to the install commands.
Expand All @@ -45,7 +45,7 @@ need to worry too much about your code style.
As long as your code is valid,
the pre-commit hook should take care of how it should look.
`pre-commit` and its associated hooks will automatically be installed when
you run ``pip install -e ".[test]"``
you run ``pip install -e ".[dev,test]"``

To install ``pre-commit`` manually, run the following::

Expand Down
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling >=0.25"]
requires = ["hatchling >=1.0"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -62,21 +62,32 @@ Tracker = "https://github.com/jupyter-server/jupyter_server/issues"
test = [
"coverage",
"ipykernel",
"pre-commit",
"pytest-console-scripts",
"pytest-cov",
"pytest-timeout",
"pytest-tornasync",
"pytest>=6.0",
"requests",
]
dev = [
"pre-commit"
]

[project.scripts]
jupyter-server = "jupyter_server.serverapp:main"

[tool.hatch.build]
artifacts = ["jupyter_server/static/style/*.*"]

[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"jupyter_server/static/style/bootstrap.min.css",
"jupyter_server/static/style/bootstrap-theme.min.css"
]
install-pre-commit-hook = true

[tool.black]
line_length = 100

Expand Down

0 comments on commit 1f3f3a7

Please sign in to comment.