-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
80 lines (70 loc) · 1.54 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
[tool.poetry]
name = "anonymize"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
lint.ignore = ["E501"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".ipynb",
]
# Same as Black.
line-length = 100
[tool.coverage.run]
omit = ["*/tests/*", "*/__init__.py"]
[tool.coverage.report]
fail_under = 70
[tool.poe.tasks]
format = "ruff format"
type = "mypy -p anonymize"
lint = "ruff check . --fix"
all = ["format", "lint", "type", "test", "cov"]
test = "pytest -v --cov=anonymize --cov-report=xml -s tests"
cov = "coverage report -m --precision=2 --sort=cover"
pre = "pre-commit run --files */* *"
reqs = "poetry export --without-hashes -f requirements.txt --output requirements.txt"
reqsdev = "poetry export --with dev --without-hashes -f requirements.txt --output requirements-dev.txt"
[tool.poetry.dependencies]
python = "^3.9"
polars = "^0.20.10"
pydantic = "^2.6.2"
loguru = "^0.7.2"
pyarrow = "^15.0.0"
pyyaml = "^6.0.1"
connectorx = "^0.3.2"
mimesis = "11.1.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.2.2"
pre-commit = "^3.6.2"
mypy = "^1.8.0"
pytest = "^8.0.1"
poethepoet = "^0.24.4"
coverage = "^7.4.3"
types-pyyaml = "^6.0.12.12"
pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"