-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (75 loc) · 2.12 KB
/
pyproject.toml
File metadata and controls
83 lines (75 loc) · 2.12 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
[tool.poetry]
name = "biasanalyzer"
version = "0.1.0"
description = "A python package for health data bias quantification to support visual analytics techniques for tracking and communicating bias in cohort selection"
authors = ["Hong Yi <[email protected]>"]
readme = "README.md"
license="MIT"
keywords=["bias", "healthcare", "cohort", "OMOP", "analytics", "observational research"]
include = [
{path = "biasanalyzer/sql_templates/*.sql", format=["sdist", "wheel"]}
]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
duckdb = "^1.1.1"
pandas = "^2.1.4"
scipy = [
{version = ">=1.10.1,<1.11", markers = "python_version<'3.12'"},
{version = ">=1.14.1,<1.15", markers = "python_version>='3.12'"}
]
numpy = [
{version = ">=1.24.4,<1.25", markers = "python_version<'3.12'"},
{version = ">=1.25.0,<=1.26.4", markers = "python_version>='3.12'"}
]
duckdb-engine = "^0.13.2"
sqlalchemy = "^2.0.35"
pyyaml = "^6.0.2"
pydantic = "^2.9.2"
psycopg2 = "^2.9.9"
ipytree = "^0.2.2"
ipywidgets = "^8.1.5"
jinja2 = "3.1.6"
tqdm = "4.67.1"
networkx = "3.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "5.0.0"
ruff = "^0.14.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# ----------------------------
# Ruff configuration
# ----------------------------
[tool.ruff]
# Linting targets your source and test code
target-version = "py38"
src = ["biasanalyzer", "tests", "scripts"]
line-length = 120
# Enable full linting set roughly equivalent to Flake8 + isort + pyupgrade
lint.select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort-style import sorting
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
"S", # security (flake8-bandit subset)
]
lint.ignore = ["S101", "N805", "S701"]
# Automatically fix simple issues on save (optional)
fix = true
# Exclude build/test caches and notebooks
exclude = [
".venv",
".git",
"__pycache__",
"build",
"dist",
"notebooks",
]
[tool.ruff.format]
# Ruff's built-in formatter replaces Black
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = "dynamic"