-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
63 lines (51 loc) · 1.24 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
[project]
name = "TODO: Tool name"
description = "TODO: Tool description"
version = "0.0.0"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
[tool.ruff]
# The directories to consider when resolving first- vs. third-party imports
src = ["."]
line-length = 100
indent-width = 4
# run ruff on jupyter notebooks (this is not enabled by default)
extend-include = ["*.ipynb"]
[tool.ruff.per-file-ignores]
# ignore star and unused imports
"__init__.py" = ["F403", "F405"]
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# pycodestyle error
"E",
# pyflakes
"F",
# isort
"I",
# pyupgrade
"UP",
# pycodestyle warning
"W",
]
# rule codes to ignore
ignore = []
# Allows fix for all enabled rules when `--fix` is provided
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
# Like Black, use double quotes, indent with spaces, and respect trailing commas
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
order-by-type = true
no-lines-before = ["future", "standard-library"]
[tool.snakefmt]
# the line length here should match the one used by ruff
line_length = 100
include = 'Snakefile|Snakefile_*'
exclude = 'dev'