-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
115 lines (98 loc) · 2.39 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
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
[tool.poetry]
name = "gaia"
version = "0.0.0"
description = "Template repository for a python project"
authors = ["Yifei Yu"]
readme = "README.md"
packages = [
{ include = "gaia", from = "src" }
]
include = [
{ path = "src/gaia/conf_default", format = "sdist" },
{ path = "notebooks", format = "sdist" }
]
[tool.poetry.dependencies]
python = "~3.11"
pydantic = "^2.8.2"
pandas = "^2.2.2"
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
pytest = "^8.2.2"
mypy = "^1.10.1"
flake8 = "^7.1.0"
coverage = {extras = ["toml"], version = "^7.6.0"}
black = "^24.4.2"
yamllint = "^1.35.1"
semgrep = "^1.79.0"
ipykernel = "^6.29.5"
nbformat = "^5.10.4"
ruff = "^0.5.2"
shellcheck-py = "^0.10.0.1"
python-dotenv = "^1.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
force-exclude = '''
.*/setup\.py$
'''
[tool.isort]
profile = "black"
line_length = 88
src_paths = ["src", "tests"]
extend_skip = ["setup.py"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
addopts = "--junitxml=test_report.xml"
testpaths = "tests"
[tool.mypy]
files = "src"
mypy_path = "src"
exclude = [
".venv"
]
namespace_packages = true
explicit_package_bases = true
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
[[tool.mypy.overrides]]
module = []
ignore_missing_imports = true
warn_return_any = false
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 50
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
'''if self\.debug''',
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
'''@(abc\.)?abstractmethod''',
]
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"