-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (98 loc) · 2.28 KB
/
pyproject.toml
File metadata and controls
112 lines (98 loc) · 2.28 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "orographer"
version = "0.1.0"
description = "command line tool for visualizing split alignments from BAM files"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "Proprietary" }
authors = [
{ name = "Jonathan Belyeu", email = "jbelyeu@pacificbiosciences.com" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: Other/Proprietary License",
]
dependencies = [
"bokeh>=3.0.0",
"intervaltree>=3.1.0",
"pysam>=0.23.0",
]
[project.optional-dependencies]
# End-to-end shell script (tests/scripts/run_end_to_end_tests.sh): CPython venv + pytest +
# ruff (lint/format gate) + tests/scripts/compare_files.py (pysam + skimage for HTML SSIM).
e2e = [
"pytest>=8.3,<9",
"ruff>=0.8",
"scikit-image>=0.22",
]
dev = [
"pytest==8.3.5",
"pytest-cov",
"black",
"isort",
"mypy",
"ruff",
"pre-commit",
]
[project.scripts]
orographer = "orographer.__main__:main"
[tool.hatch.build.targets.wheel]
packages = ["orographer"]
[tool.hatch.build.targets.sdist]
include = [
"orographer",
"LICENSE.md",
"README.md",
]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=orographer {args:tests}"
lint = [
"ruff check .",
"ruff format --check .",
"black --check .",
"isort --check-only .",
"mypy .",
]
format = [
"ruff check --fix .",
"ruff format .",
"black .",
"isort .",
]
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "SIM", "RUF"]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-ra -q"
markers = [
"slow: slow integration tests (e.g., deploy smoke tests)",
]