generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (69 loc) · 1.46 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=45", "wheel"]
[project]
name = "metrics"
description = "Internal metrics tooling for the Bennett Institute of Applied Data Science at Oxford"
readme = "README.md"
authors = [{name = "Bennett Institute", email = "[email protected]"}]
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
requires-python = ">=3.11"
dependencies = [
"click",
"github-to-sqlite",
"greenlet",
"requests",
"slack-bolt",
"sqlalchemy[postgresql_psycopgbinary]",
"structlog",
]
dynamic = ["version"]
[project.urls]
Home = "https://bennett.ox.ac.uk"
Source = "https://github.com/opensafely-core/metrics/"
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
omit = [
".venv/*",
]
[tool.coverage.report]
fail_under = 100
skip_covered = true
show_missing = true
[tool.coverage.html]
show_contexts = true
[tool.pytest.ini_options]
[tool.ruff]
line-length = 88
exclude = [
".direnv",
".git",
".github",
".ipynb_checkpoints",
".pytest_cache",
".venv",
"__pycache__",
"docker",
"htmlcov",
"venv",
]
extend-select = [
"A", # flake8-builtins
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"UP", # pyupgrade
"W", # pycodestyle warning
]
extend-ignore = [
"E501",
"E731",
]
[tool.ruff.isort]
lines-after-imports = 2
[tool.setuptools.packages.find]
include = ["metrics*"]