Move releaser config to pyproject.toml

This commit is contained in:
Jeremy Tuloup 2022-10-17 15:10:42 +00:00
parent eedfc74a04
commit 89c9e7eebd
2 changed files with 20 additions and 20 deletions

View File

@ -60,25 +60,5 @@
"prettier": "^1.19.0",
"rimraf": "^3.0.2",
"typescript": "~4.7.3"
},
"jupyter-releaser": {
"hooks": {
"before-build-npm": [
"jlpm clean",
"jlpm build:prod"
],
"before-build-python": [
"jlpm clean"
],
"before-bump-version": [
"jlpm run build:utils",
"python -m pip install hatch"
]
},
"options": {
"version-cmd": [
"jlpm run release:bump --force --skip-commit"
]
}
}
}

View File

@ -141,3 +141,23 @@ extend-ignore = [
# black adds spaces around ':'
"E203",
]
[tool.jupyter-releaser.options]
version-cmd = "jlpm run release:bump --force --skip-commit"
[tool.jupyter-releaser.hooks]
after-prep-git = [
"python -m pip install --pre -U jupyterlab",
"jlpm"
]
before-bump-version = [
"jlpm run build:utils",
"python -m pip install hatch"
]
before-build-npm = [
"jlpm clean",
"jlpm build:prod"
]
before-build-python = [
"jlpm clean"
]