-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 2.57 KB
/
pyproject.toml
File metadata and controls
133 lines (119 loc) · 2.57 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "regbot"
authors = [
{name = "Wagner Lab"},
]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
description = "Easily fetch and operate on data from medical & drug regulatory agencies"
dependencies = ["requests"]
dynamic = ["version"]
[project.optional-dependencies]
tests = ["pytest", "pytest-cov", "requests-mock"]
dev = [
"prek>=0.2.23",
"ruff==0.14.10",
]
[project.urls]
Homepage = "https://github.com/genomicmedlab/regbot"
Documentation = "https://github.com/genomicmedlab/regbot"
Changelog = "https://github.com/genomicmedlab/regbot/releases"
Source = "https://github.com/genomicmedlab/regbot"
"Bug Tracker" = "https://github.com/genomicmedlab/regbot/issues"
[project.scripts]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
[tool.pytest.ini_options]
addopts = "--cov=src --cov-report term-missing"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# unused
"AIR",
"ERA",
"YTT",
"BLE",
"FBT",
"CPY",
"DJ",
"EXE",
"FIX",
"FA",
"PYI",
"TD",
"C90",
"NPY",
"PD",
# ignore for compatibility with formatter
"D206",
"D300",
"W191",
"E111",
"E114",
"E117",
"E501",
"W191",
"S321",
"COM812",
"COM819",
"Q000",
"Q001",
"Q002",
"Q003",
# don't require types on *args, **kwargs
"ANN002",
"ANN003",
# subjective pylint thresholds
"PLR0904",
"PLR091",
"PLR1702",
"PLC0206",
# misc unnecessary stuff
"S321",
"D203",
"D205",
"D213",
"D400",
"D415",
]
[tool.ruff.lint.per-file-ignores]
# ANN001 - missing-type-function-argument
# ANN2 - missing-return-type
# S101 - assert
# B011 - assert-false
# INP001 - implicit-namespace-package
# PLR2004 - magic-value-comparison
"tests/*" = [
"ANN001",
"ANN2",
"D",
"S101",
"B011",
"INP001",
"PLR2004",
]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.format]
docstring-code-format = true