-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (93 loc) · 2.91 KB
/
pyproject.toml
File metadata and controls
105 lines (93 loc) · 2.91 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
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[project]
name = "sequence_align"
version = "0.4.0"
description = "Efficient implementations of Needleman-Wunsch and other sequence alignment algorithms in Rust with Python bindings."
readme = "README.md"
requires-python = ">=3.10,<3.15"
authors = [
{name = "Kensho Technologies LLC.", email = "sequence-align-maintainer@kensho.com"},
]
maintainers = [
{name = "Kensho Technologies LLC.", email = "sequence-align-maintainer@kensho.com"},
]
license = {file = "LICENSE"} # Apache 2.0
classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
[project.urls]
source = "https://github.com/kensho-technologies/sequence_align"
"Homepage" = "https://github.com/kensho-technologies/sequence_align"
"Bug Tracker" = "https://github.com/kensho-technologies/sequence_align/issues"
"Changelog" = "https://github.com/kensho-technologies/sequence_align/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"mypy>=1.10,<2",
"psutil>=7,<8",
"pytest>=9,<10",
"pytest-cov>=7,<8",
"pytest-subtests>=0.15.0,<0.16",
"pyyaml>=6,<7",
"ruff>=0.15,<0.16",
"types-psutil",
"types-pyyaml",
]
[tool.maturin]
# See https://www.maturin.rs/project_layout.html#import-rust-as-a-submodule-of-your-project
# Allows "from sequence_align import _sequence_align" import
module-name = "sequence_align._sequence_align"
[tool.ruff]
line-length = 100
extend-exclude = [".venv"]
output-format = "grouped"
unsafe-fixes = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"D2", # pydocstyle formatting
"D3", # pydocstyle quote formatting
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"D203", # one-blank-line-before-class (incompatible with D211)
"D213", # multi-line-summary-second-line (incompatible with D212)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"] # Ignore pydocstyle checks on tests
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
force-sort-within-sections = true
[tool.mypy]
strict = true
show_error_codes = true
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
omit = ["tests/*"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"^\\s*\\.\\.\\.\\s*$",
]