-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
113 lines (101 loc) · 2.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"
[project]
name = "scatac_fragment_tools"
description = "Tools for working with scATAC-seq fragment files."
readme = "README.md"
keywords = ["scATAC-seq", "scATAC", "fragment files"]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]
dependencies = [
"numpy<2",
"pyBigWig",
"pybigtools>=0.2.0",
"polars>=1.0.0",
"pyarrow",
"numba",
"rich-argparse",
"joblib",
]
[project.urls]
homepage = "https://github.com/aertslab/scatac_fragment_tools/"
documentation = "https://aertslab.github.io/scatac_fragment_tools/"
repository = "https://github.com/aertslab/scatac_fragment_tools/"
changelog = "https://raw.githubusercontent.com/aertslab/scatac_fragment_tools/CHANGELOG.md"
[project.optional-dependencies]
development = [
"mypy",
"ruff",
"pytest",
]
[project.scripts]
scatac_fragment_tools = "scatac_fragment_tools.cli.main:main"
[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "scatac_fragment_tools._rust_scatac_fragment_tools"
[tool.ruff]
target-version = "py38"
line-length = 88
# fix = true
lint.select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # flake8-docstrings
"I", # isort
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"Q", # flake8-quotes
"UP", # pyupgrade
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
]
lint.ignore = [
# Line length regulated by black
"E501",
# pydocstyle: http://www.pydocstyle.org/en/stable/error_codes.html
# numpy convention with a few additional lints
"D107",
"D203",
"D212",
"D401",
"D402",
"D415",
"D416",
# flake8-pytest-style:
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception
# flake8-simplify
"SIM102", # Use a single `if` statement instead of nested `if` statements
# ruff
"RUF005", # unpack-instead-of-concatenating-to-collection-literal
# pycodestyle
# TODO: Remove errors below to further improve docstring linting
# Ordered from most common to least common errors.
"D105",
"D100",
"D103",
"D102",
"D104",
"D101",
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 88
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
addopts = "--verbose"