-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
83 lines (72 loc) · 2.27 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tool.poetry]
name = "jekyllnb"
version = "0.3.1"
description = "Convert Jupyter Notebooks to Jekyll-ready Markdown files"
authors = ["Kevin Lane <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/klane/jekyllnb"
documentation = "https://jekyllnb.readthedocs.io"
keywords = ["jekyll", "jupyter", "nbconvert"]
classifiers = [
"Framework :: Jupyter",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing",
"Topic :: Utilities",
]
[tool.poetry.dependencies]
python = "^3.9"
nbconvert = "^7.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6"
[tool.poetry.group.test.dependencies]
pre-commit = "^4.0"
pytest = "^8.0"
pytest-cov = "^5.0"
pytest-sugar = "^1.0"
pytest-xdist = { version = "^3.6", extras = ["psutil"] }
[tool.poetry.scripts]
jupyter-jekyllnb = "jekyllnb.jekyllnb:JekyllNB.launch_instance"
[tool.poetry.plugins."nbconvert.exporters"]
jekyll = "jekyllnb:JekyllExporter"
[build-system]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"E", # pycodestyle (error)
"ERA", # eradicate
"F", # pyflakes
"I", # isort
"PERF", # perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"Q", # flake8-quotes
"RUF", # ruff-specific rules
"S", # flake8-bandit
"W", # pycodestyle (warning)
"UP", # pyupgrade
]
ignore = [
"D100", # https://docs.astral.sh/ruff/rules/undocumented-public-module/
"D104", # https://docs.astral.sh/ruff/rules/undocumented-public-package/
"D203", # https://docs.astral.sh/ruff/rules/one-blank-line-before-class/
"D213", # https://docs.astral.sh/ruff/rules/multi-line-summary-second-line/
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "S101", "S603", "S607"]
[tool.pytest.ini_options]
addopts = ["--cov", "jekyllnb", "-n", "logical"]
testpaths = ["tests"]