-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
147 lines (119 loc) · 3.25 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
requires = [
"wheel",
"Cython ~= 3.0",
"pysam ~= 0.22",
"setuptools ~= 69.0",
"setuptools_scm ~= 8.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "uta-align"
authors = [
{ name = "biocommons contributors", email = "[email protected]" },
]
description = "C-based sequence alignment for Python"
readme = "README.rst"
license = { file = "LICENSE.txt" }
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
dependencies = ["coloredlogs ~= 15.0", "pysam ~= 0.22", "pyyaml ~= 6.0"]
[project.optional-dependencies]
dev = [
"black ~= 22.3",
"build ~= 0.8",
"flake8 ~= 4.0",
"ipython ~= 8.4",
"isort ~= 5.10",
"pre-commit ~= 3.4",
"pylint ~= 2.14",
"pytest-cov ~= 4.1",
"pytest-optional-tests",
"pytest ~= 7.1",
"setuptools_scm ~= 8.0",
"twine ~= 5.0",
"wheel ~= 0.42",
]
docs = ["mkdocs"]
[project.urls]
"Homepage" = "https://github.com/biocommons/uta-align"
"Bug Tracker" = "https://github.com/biocommons/uta-align/issues"
[tool.coverage.run]
branch = true
source = ["uta-align"]
omit = ["*_test.py", "*/test/*", "*/tests/*"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
]
[tool.black]
line-length = 100
[tool.cython]
language_level = 3 # Use Python 3 syntax for Cython code
[tool.flake8]
# http://pep8.readthedocs.org/en/latest/intro.html#error-codes
ignore = "E129,E221,E241,E251,E303,W291"
exclude = [".git", "__pycache__", "build", "dist"]
max-line-length = 120
max-complexity = 10
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.pylint.'MESSAGES CONTROL']
disable = "R0913"
[tool.pylint.format]
max-line-length = 100
[tool.pyright]
include = ["src", "tests"]
[tool.pytest.ini_options]
# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
minversion = "6.0"
addopts = "-s -v -x --cov=uta_align"
#addopts = "-ra -q"
doctest_optionflags = [
"ALLOW_BYTES",
"ALLOW_UNICODE",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
markers = [
"integration: marks tests as integration (deselect with '-m \"not integration\"')",
"network: tests that require network connectivity",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
norecursedirs = ["dist", "build", ".tox"]
# [tool.setuptools]
# include-package-data = true
# [tool.setuptools.packages.find]
# where = ["src"]
# exclude = ["__pycache__", "*.pyc"]
# namespaces = true
# [tool.setuptools.package-data]
# "*" = ["*.gz", "*.json", "*.yaml"]
[tool.setuptools_scm]
#[tool.setuptools.ext_modules]
# Define Cython modules here
# Example:
# mymodule = { sources = ["src/mymodule.pyx"], include_dirs = ["include"] }