-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
71 lines (62 loc) · 1.61 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
[build-system]
requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/cell_gater/_version.py"
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310']
[tool.ruff]
line-length = 120
lint.select = [
"D", # flake8-docstrings
"I", # isort
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"Q", # flake8-quotes
"SIM", # flake8-simplify
"TID", # flake-8-tidy-imports
"NPY", # NumPy-specific rules
"PT", # flake8-pytest-style
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"BLE", # flake8-blind-except
"T20", # flake8-print
"RET", # flake8-raise
]
lint.ignore = [
"E501", # line too long. let black handle this
"D100", # Missing docstring in public module
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this.
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9
"D104", # Missing docstring in public package
]
lint.unfixable = ["B", "UP", "C4", "BLE", "T20", "RET"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".mypy_cache",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"*vendored*",
"*_vendor*",
]
target-version = "py38"
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"