-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
89 lines (78 loc) · 1.83 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
84
85
86
87
88
89
[project]
name = "nb-clean"
version = "4.0.1"
description = "Clean Jupyter notebooks for versioning"
authors = [{ name = "Scott Stevenson", email = "[email protected]" }]
readme = "README.md"
license = "ISC"
requires-python = ">=3.9"
keywords = ["jupyter", "notebook", "clean", "filter", "git"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
]
dependencies = ["nbformat>=5.9.2"]
[project.urls]
Homepage = "https://github.com/srstevenson/nb-clean"
Repository = "https://github.com/srstevenson/nb-clean"
Issues = "https://github.com/srstevenson/nb-clean/issues"
[project.scripts]
nb-clean = "nb_clean.cli:main"
[dependency-groups]
dev = [
"coverage>=7.6.10",
"mypy>=1.4",
"pytest>=7.2.1",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.1",
"ruff>=0.1.6",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.report]
exclude_also = ["if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
enable_error_code = ["ignore-without-code"]
no_implicit_optional = true
show_error_codes = true
strict = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = "--cov=nb_clean --cov-report=term-missing"
testpaths = ["tests"]
[tool.ruff]
target-version = "py39"
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"C901",
"COM812",
"D203",
"D213",
"E501",
"INP001",
"ISC001",
"PLR0912",
"PLR0913",
"PLR2004",
"RET504",
"S101",
"S603",
"S607",
"T201",
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false