-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (80 loc) · 1.74 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
[tool.poetry]
name = "precalculator"
version = "0.1.0"
description = "Repository to pre-calculate model outputs for the Ersilia Model Hub"
authors = ["Kartikey Vyas <kartikeyvyas23@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
urllib3 = "^1"
pandas = "^2"
boto3 = "^1.28.26"
pydantic = "^2"
s3fs = "^2023.10.0"
python-dotenv = "^1.0.0"
awswrangler = "^3.9.0"
numpy = "^1.26.4"
pyairtable = "^2.3.3"
ersilia = {path = "ersilia", develop = true}
pydantic-settings = "^2.4.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
black = "^23.7.0"
ruff = "^0.0.278"
localstack = "^2.1.0"
ipykernel = "^6.25.1"
jupyter = "^1.0.0"
pre-commit = "^3.3.3"
mypy = "^1.5.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
ignore_missing_imports = true
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
# rules to enable/ignore
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# type annotations
"ANN",
# pep8-naming
"N",
# bugbear
"B",
# isort
"I",
# flake8-unused-arguments
"ARG",
# flake8-self
"SLF",
# ruff-specific
"RUF",
]
ignore = [
# allow untyped self and cls args, and no return type from dunder methods
"ANN101",
"ANN102",
"ANN204",
# allow == True because pandas dataframes overload equality
"E712",
]
# first-party imports for sorting
src = ["."]
fix = true
show-fixes = true
[tool.ruff.per-file-ignores]
# imports in __init__.py don't need to be used in __init__.py
"__init__.py" = ["F401"]
# test functions don't need return types
"tests/*" = ["ANN201", "ANN202"]
[tool.ruff.flake8-annotations]
# allow *args: Any, **kwargs: Any
allow-star-arg-any = true