spawner/pyproject.toml

89 lines
2.1 KiB
TOML
Raw Normal View History

2024-01-29 11:31:49 +01:00
[tool.poetry]
name = "glicid-spawner"
version = "0.0.1"
description = "JupyterHub Batch Spawner for GLiCID"
authors = ["Benoit Seignovert <benoit.seignovert@univ-nantes.fr>"]
license = "BSD 3-Clause License"
readme = "README.md"
repository = "https://gitlab.univ-nantes.fr/glicid/jupyter/spawner"
packages = [{ include = "glicid_spawner", from = "src"}]
2024-02-06 16:21:28 +01:00
[tool.poetry.scripts]
glicid-spawner-singleuser = 'glicid_spawner.singleuser:main'
2024-01-29 17:47:47 +01:00
[tool.poetry.plugins."jupyterhub.spawners"]
glicid-spawner = 'glicid_spawner:GlicidSpawner'
2024-01-29 11:31:49 +01:00
[tool.poetry.dependencies]
python = "^3.10"
jupyterhub = "^4.0"
batchspawner = {git = "https://github.com/jupyterhub/batchspawner.git", rev = "main"}
2024-01-30 14:19:52 +01:00
jinja2 = "^3.1.3"
2024-01-29 11:31:49 +01:00
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.0"
pytest = "^8.0.0"
ruff = "^0.1.14"
2024-02-08 13:48:42 +01:00
pytest-cov = "^4.1.0"
2024-01-29 11:31:49 +01:00
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle
"W", # pycodestyle
"PL", # Pylint
"I", # isort
"N", # pep8-naming
"C90", # mccabe
"UP", # pyupgrade
"S", # flake8-bandit
"A", # flake8-builtins
"B", # flake8-bugbear
"SIM", # flake8-simplify
"COM", # flake8-commas
"C4", # flake8-comprehensions
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
]
2024-01-30 15:33:02 +01:00
ignore = [
"COM812", # disable ruff format warning
"E501", # disable ruff line-too-long error
]
2024-01-29 11:31:49 +01:00
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
docstring-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
2024-02-08 13:48:42 +01:00
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # assert
"PLR2004", # magic-value-comparison
]
[tool.pytest.ini_options]
minversion = '6.0'
addopts = '--verbose --color=yes --cov=glicid_spawner --cov-report term-missing'
testpaths = ['tests']
[tool.coverage.report]
exclude_lines = [
'def __repr__',
'pragma: no cover',
'raise NotImplementedError',
]
2024-01-29 11:31:49 +01:00
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"