-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (67 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (67 loc) · 2.67 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
# This template supports two use cases:
# 1. Scripts repo — linting/formatting only, no installation required.
# Remove the [build-system], [tool.hatch.*], and [project] sections;
# keep everything from [tool.ruff] onward.
# 2. Installable package — the default. Uses src/ layout with hatchling.
# Replace "package_name" with your package name in [project], [tool.hatch.*],
# and the src/ directory.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/package_name"]
[tool.hatch.build.targets.wheel.sources]
"src" = ""
[project]
# TODO: replace with your project name
name = "package_name"
# TODO: replace with your project description
description = "TODO: project description"
readme = "README.md"
requires-python = ">=3.10"
version = "0.1.0"
license = { file = "LICENSE" }
classifiers = [
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = []
[project.optional-dependencies]
dev = ["pre-commit", "pytest", "bump-my-version"]
test = ["pytest"]
[project.urls]
# TODO: replace with your project repository URL
Repository = "https://github.com/populationgenomics/package_name"
[tool.pytest.ini_options]
testpaths = ["test"]
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
select = ["A", "B", "C", "E", "F", "G", "I", "N", "Q", "S", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "ERA", "EXE", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "UP", "YTT"]
fixable = ["ALL"]
ignore = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"ANN204", # Missing type annotation for special method __init__
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"COM812", # Trailing comma prohibited
"G004", # Logging statement uses f-string
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison
"Q000", # Single quotes found but double quotes preferred
"S101", # Use of assert detected
]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "hail", "cpg", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
hail = ["hail", "hailtop"]
cpg = ["cpg_flow", "cpg_utils", "cpg_infra", "metamist", "analysis_runner"]
[tool.mypy]
ignore_missing_imports = true