-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
88 lines (74 loc) · 2.12 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "GIMMEcpg-python"
version = "0.0.1"
description = "Python version of GIMMEcpg, developed with Polars and H2OAutoML"
authors = ["Niuzheng Chai <[email protected]>"]
readme = "README.md"
packages = [{ include = "src/gimmecpg_python" }]
license = "MIT"
repository = "https://github.com/niuums/gimmecpg_python"
classifiers = ["Programming Language :: Python :: 3 :: Only"]
[tool.poetry.dependencies]
python = "^3.12"
polars = "0.20.7"
h2o = "3.44.0.3"
pandas = "~2.2.1"
numpy = "~1.26.4"
pyarrow = "~15.0.0"
[tool.poetry.scripts]
gimmecpg_python = "gimmecpg_python.main:main"
[tool.poetry.group.dev.dependencies]
boto3-stubs = { extras = ["lambda", "s3"], version = "*" }
ipdb = "*"
ipython = "*"
jupyterlab = "*"
mypy = "*"
mypy-boto3-lambda = "*"
mypy-boto3-s3 = "*"
pandas-stubs = "*"
pdbpp = "*"
pip = "*"
pre-commit = "*"
pytest-cov = "*"
pytest-env = "*"
pytest-xdist = "*"
ruff = "*"
typed-argument-parser = "*"
types-pillow = "*"
types-tqdm = "*"
wheel = "*"
[tool.pytest.ini_options]
addopts = "tests --cov=gimmecpg_python/ --cov-report=term-missing:skip-covered --cov-report=xml --dist=loadgroup -n 8 --durations=5"
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
extend-select = ["UP", "RUF", "I", "D", "E501"]
ignore = ["UP036"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D103", "D104"]
[tool.mypy]
strict = false
disable_error_code = ["type-arg"]
# NOTE: uncomment these lines and edit accordingly if you have modules still without typings
[tool.mypy.overrides]
module = ["files.*","missing.*","impute.*"]
ignore_missing_imports = true
disallow-untyped-defs = false
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_files = ["gimmecpg_python/__init__.py"]
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true