-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (53 loc) · 1.55 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
[build-system]
requires = ["setuptools",
"setuptools_scm",
"wheel"]
build-backend = 'setuptools.build_meta'
[tool.codespell]
skip = "*.fts,*.fits,venv,*.pro,*.asdf"
[tool.ruff]
target-version = "py39"
line-length = 110
exclude=[
".git,",
"__pycache__",
"build",
"mocksipipeline/version.py",
]
show-fixes = true
show-source = true
select = [
"E",
"F",
"W",
"UP",
"PT",
#"RET",
#"TID",
]
extend-ignore = [
# pycodestyle (E, W)
"E501", # LineTooLong # TODO! fix
# pytest (PT)
"PT001", # Always use pytest.fixture()
"PT004", # Fixtures which don't return anything should have leading _
"PT007", # Parametrize should be lists of tuples # TODO! fix
"PT011", # Too broad exception assert # TODO! fix
"PT023", # Always use () on pytest decorators
]
[tool.ruff.per-file-ignores]
# Part of configuration, not a package.
"setup.py" = ["INP001"]
"conftest.py" = ["INP001"]
# implicit-namespace-package. The examples are not a package.
"docs/*.py" = ["INP001"]
# Module level imports do not need to be at the top of a file here
"docs/conf.py" = ["E402"]
"__init__.py" = ["E402", "F401", "F403"]
"test_*.py" = ["B011", "D", "E402", "PGH001", "S101"]
# Snakemake variables show up as undefined names
"pipeline/workflow/scripts/*.py" = ["F821"]
# Need an import to register a Fido client, but import not explicitly used
"pipeline/workflow/scripts/download_data.py" = ["F401"]
[tool.ruff.pydocstyle]
convention = "numpy"