-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (63 loc) · 1.82 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["sizepicker"]
[project]
name = "sizepicker"
description = "Pick blobs in tomograms."
readme = "README.md"
requires-python = ">=3.8"
authors = [
{email = "[email protected]", name = "Benedikt Wimmer"},
]
version = "0.1"
dependencies = [
"click",
"mrcfile",
"numpy",
"scipy",
"scikit-image"
]
[project.optional-dependencies]
dev = [
"ruff",
]
[project.urls]
homepage = "https://github.com/bwmr/sizepicker"
repository = "https://github.com/bwmr/sizepicker"
[project.scripts]
sizepicker = "sizepicker.interface:cli"
[tool.ruff]
# partially copied from github.com/teamtomo/membrain-seg
line-length = 88
target-version = "py38"
lint.extend-select = [
"E", # style errors
"W", # style warnings
"F", # flakes
"D", # pydocstyle
"I", # isort
"U", # pyupgrade
"C", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
]
lint.extend-ignore = [
"D100", # Missing docstring in public module
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D401", # First line should be in imperative mood
"D413", # Missing blank line after last section
"D416", # Section name should end with a colon
"C901", # Function too complex -> noted as TODO in code
"RUF005", # Interferes with subprocess.run,
"RUF015", # Prefer next(iter) over iter[0]
"B012", # We use try/ finally a lot to avoid raising exceptions
]
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"