-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
95 lines (80 loc) · 2.54 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "yhaplo"
description = "Y-chromosome haplogroup caller"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE.txt" }
authors = [
{ name = "Population Genetics R&D" },
{ email = "[email protected]" },
]
dependencies = ["numpy", "pandas", "pyyaml"]
dynamic = ["version"]
[project.optional-dependencies]
vcf = ["pysam"]
plot = ["biopython"]
dev = [
"yhaplo[vcf,plot]",
"ipykernel",
"ipython",
"pytest",
"setuptools_scm",
"tabulate",
]
[project.scripts]
yhaplo = "yhaplo.cli.yhaplo:main"
yhaplo_convert_to_genos = "yhaplo.cli.convert_to_genos:main"
yhaplo_plot_tree = "yhaplo.cli.plot_tree:main"
[project.urls]
Homepage = "https://github.com/23andMe/yhaplo"
Documentation = "https://github.com/23andMe/yhaplo/blob/master/yhaplo_manual.pdf"
Repository = "https://github.com/23andMe/yhaplo.git"
Changelog = "https://github.com/23andMe/yhaplo/blob/master/CHANGELOG.md"
[tool.setuptools_scm]
[tool.isort]
profile = "black"
filter_files = true
[tool.mypy]
ignore_missing_imports = true
install_types = true
non_interactive = true
[tool.pydocstyle]
# D107 Missing docstring in __init__
# D202 No blank lines allowed after function docstring
# Ignoring allows blank lines after one-line docstrings.
# D203 1 blank line required before class docstring
# Conflicts with Black and D211.
# D213 Multi-line docstring summary should start at the second line
# Contradicts D212.
# https://github.com/PyCQA/pydocstyle/issues/242#issuecomment-288166773
ignore = "D107,D202,D203,D213"
match_dir = "(?!tests|\\.).*"
[tool.pytest.ini_options]
norecursedirs = [".*", "build"]
[tool.ruff]
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = [
"I", # isort
"E", # Flake8: pycodestyle (Error)
"W", # Flake8: pycodestyle (Warning)
"F", # Flake8: Pyflakes
"B", # Flake8: flake8-bugbear
"C4", # Flake8: flake8-comprehensions
"SIM", # Flake8: flake8-simplify
"D", # pydocstyle
"UP", # pyupgrade
]
ignore = [
"D107", # Missing docstring in __init__
"D202", # No blank lines allowed after function docstring. Ignore for one-line docstrings.
"D203", # 1 blank line required before class docstring. Conflicts with Black and D211.
"D213", # Multi-line docstring summary should start at the second line. Contradicts D212.
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"] # Ignore test-module docstrings
[tool.ruff.lint.pydocstyle]
convention = "numpy"