-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (51 loc) · 1.54 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (51 loc) · 1.54 KB
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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["hooks"]
[project]
name = "pre_commit_hooks"
version = "1.2.0"
description = "A library of custom `pre-commit-hooks` used in other projects"
authors = [{ name = "Nesta" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"jupytext>=1.17.2",
"nbstripout>=0.8.1",
]
[project.urls]
repository = "https://github.com/nestauk/pre-commit-hooks"
issues = "https://github.com/nestauk/pre-commit-hooks/issues"
[dependency-groups]
dev = ["ipykernel", "ruff"]
[project.scripts]
nbstripout-preserve-timestamp = "hooks.nbstripout_preserve_timestamp:main"
jupytext-enforce-pairing = "hooks.jupytext_enforce_pairing:main"
jupytext-smart-sync = "hooks.jupytext_smart_sync:main"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"C", # flake8-comprehensions and mccabe complexity
"E", # pycodestyle: Errors (default)
"F", # pyflakes: Linter
"I", # isort
"N", # pep8-naming: Naming conventions
"W", # pycodestyle: Warnings (default)
]
ignore = [
"D100", # Warns about missing module-level docstrings
"S101", # Warns about assert being removed when compiled
]
[tool.ruff.lint.isort]
known-first-party = ["hooks"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "D104"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"