forked from moj-analytical-services/splink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (82 loc) · 2.06 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
[tool.poetry]
name = "splink"
version = "3.9.3"
description = "Fast probabilistic data linkage at scale"
authors = ["Robin Linacre <[email protected]>", "Sam Lindsay", "Theodore Manassis", "Tom Hepworth", "Andy Bond", "Ross Kennedy"]
license = "MIT"
homepage = "https://github.com/moj-analytical-services/splink"
repository = "https://github.com/moj-analytical-services/splink"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.7"
jsonschema = ">=3.2,<5.0"
pandas = ">=1.0.0"
duckdb = ">=0.8.0"
# normalize issue in sqlglot - temporarily exclude updates
sqlglot = ">=7.0.0,<11.4.2"
altair = "^5.0.1"
Jinja2 = ">=3.0.3"
phonetics = "^1.0.5"
[tool.poetry.group.dev]
[tool.poetry.group.dev.dependencies]
tabulate = "0.8.9"
pyspark = "^3.2.1"
# sqlalchemy >= 2.0.0 not working well with older pandas
sqlalchemy = ">=1.4.0,<2.0.0"
# temporarily use binary version, to avoid issues with pg_config path
psycopg2-binary = ">=2.8.0"
[tool.poetry.group.linting]
[tool.poetry.group.linting.dependencies]
black = "22.6.0"
ruff = "0.0.257"
[tool.poetry.group.testing]
[tool.poetry.group.testing.dependencies]
pytest = "^7.0"
pyarrow = "^7.0.0"
networkx = "2.5.1"
rapidfuzz = "^2.0.3"
[tool.poetry.group.benchmarking]
optional = true
[tool.poetry.group.benchmarking.dependencies]
pytest-benchmark = "^4"
lzstring = "1.0.4"
[build-system]
requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 88
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001",
# bugbear
"B",
# flake8-print
"T20"
]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"B006", # Do not use mutable data structures for argument defaults"
]
[tool.pytest.ini_options]
addopts = ["-m default"]
markers = [
# only tests where backend is irrelevant:
"core",
# see tests/decorator.py::dialect_groups for group details:
"default",
"all",
# backend-specific sets
"duckdb",
"duckdb_only",
"spark",
"spark_only",
"sqlite",
"sqlite_only",
]