forked from capitalone/datacompy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (127 loc) · 4.68 KB
/
Copy pathpyproject.toml
File metadata and controls
146 lines (127 loc) · 4.68 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[project]
name = "datacompy"
description = "Dataframe comparison in Python"
readme = "README.md"
authors = [
{ name="Faisal Dosani", email="faisal.dosani@capitalone.com" },
{ name="Ian Robertson" },
{ name="Dan Coates" },
]
maintainers = [
{ name="Faisal Dosani", email="faisal.dosani@capitalone.com" },
{ name="Jacob Dawang", email="jacob.dawang@capitalone.com" },
{ name="Raymond Haffar", email="raymond.haffar@capitalone.com" },
]
license = {text = "Apache Software License"}
dependencies = ["pandas<=2.2.3,>=0.25.0", "numpy<=2.2.5,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "polars[pandas]<=1.27.1,>=0.20.4"]
requires-python = ">=3.10.0"
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/capitalone/datacompy"
Documentation = "https://capitalone.github.io/datacompy/"
Repository = "https://github.com/capitalone/datacompy.git"
"Bug Tracker" = "https://github.com/capitalone/datacompy/issues"
"Source Code" = "https://github.com/capitalone/datacompy"
[build-system]
requires = ["setuptools>=64.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["datacompy", "datacompy.spark"]
zip-safe = false
include-package-data = true
[tool.setuptools.package-data]
"*" = ["templates/*.txt"]
[tool.setuptools.dynamic]
version = {attr = "datacompy.__version__"}
[tool.distutils.bdist_wheel]
python-tag = "py3"
[project.optional-dependencies]
fugue = ["fugue[dask,duckdb,ray]<=0.9.1,>=0.8.7"]
spark = ["pyspark[connect]>=3.1.1; python_version < \"3.11\"", "pyspark[connect]>=3.4; python_version >= \"3.11\""]
snowflake = ["snowflake-connector-python", "snowflake-snowpark-python"]
docs = ["sphinx", "furo", "myst-parser"]
tests = ["pytest", "pytest-cov"]
tests-spark = ["pytest", "pytest-cov", "pytest-spark"]
tests-snowflake = ["snowflake-snowpark-python[localtest]"]
qa = ["pre-commit", "ruff==0.5.7", "mypy", "pandas-stubs"]
build = ["build", "twine", "wheel"]
edgetest = ["edgetest", "edgetest-conda"]
dev_no_snowflake = ["datacompy[fugue]", "datacompy[spark]", "datacompy[docs]", "datacompy[tests]", "datacompy[tests-spark]", "datacompy[qa]", "datacompy[build]"]
dev = ["datacompy[fugue]", "datacompy[spark]", "datacompy[snowflake]", "datacompy[docs]", "datacompy[tests]", "datacompy[tests-spark]", "datacompy[tests-snowflake]", "datacompy[qa]", "datacompy[build]"]
# Linters, formatters and type checkers
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
preview = true
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
# "A", # flake8-builtins
"C4", # flake8-comprehensions
#"C901", # mccabe complexity
# "G", # flake8-logging-format
"T20", # flake8-print
"TID252", # flake8-tidy-imports ban relative imports
# "ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"NPY", # numpy rules
"LOG", # flake8-logging
"RUF", # Ruff errors
]
ignore = [
"E111", # Check indentation level. Using formatter instead.
"E114", # Check indentation level. Using formatter instead.
"E117", # Check indentation level. Using formatter instead.
"E203", # Check whitespace. Using formatter instead.
"E501", # Line too long. Using formatter instead.
"D206", # Docstring indentation. Using formatter instead.
"D300", # Use triple single quotes. Using formatter instead.
"SIM108", # Use ternary operator instead of if-else blocks.
"SIM105", # Use `contextlib.suppress(FileNotFoundError)` instead of `try`-`except`-`pass`
"UP035", # `typing.x` is deprecated, use `x` instead
"UP006", # `typing.x` is deprecated, use `x` instead
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs}/*" = ["E402", "D", "F841", "ARG"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
module = ["fugue.*","triad.*"]
implicit_reexport = true
[[tool.mypy.overrides]]
module = "pyarrow"
ignore_missing_imports = true
[edgetest.envs.core]
python_version = "3.10"
conda_install = ["openjdk=8"]
extras = ["dev"]
command = "pytest tests/ --ignore=tests/test_snowflake.py"
upgrade = [
"pandas",
"numpy",
"ordered-set",
"polars[pandas]",
]