-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
120 lines (102 loc) · 3.31 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
116
117
118
119
120
[project]
name = "locopy"
description = "Loading/Unloading to Amazon Redshift using Python"
readme = "README.rst"
authors = [
{ name="Faisal Dosani", email="[email protected]" },
]
license = {text = "Apache Software License"}
dependencies = ["boto3<=1.35.63,>=1.9.92", "PyYAML<=6.0.1,>=5.1", "pandas<=2.2.3,>=1.5.0", "numpy<=2.1.3,>=1.22.0", "polars>=0.20.0", "pyarrow>=10.0.1"]
requires-python = ">=3.9.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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/capitalone/locopy"
Documentation = "https://capitalone.github.io/locopy/"
[tool.setuptools]
packages = ["locopy"]
zip-safe = false
[tool.setuptools.dynamic]
version = {attr = "locopy._version.__version__"}
[project.optional-dependencies]
psycopg2 = ["psycopg2-binary>=2.7.7"]
pg8000 = ["pg8000>=1.13.1"]
snowflake = ["snowflake-connector-python[pandas]>=2.1.2"]
docs = ["sphinx", "sphinx_rtd_theme"]
tests = ["hypothesis", "pytest", "pytest-cov"]
qa = ["pre-commit", "ruff==0.5.7"]
build = ["build", "twine", "wheel"]
edgetest = ["edgetest", "edgetest-conda"]
dev = ["locopy[tests]", "locopy[docs]", "locopy[qa]", "locopy[build]"]
# Linters, formatters and type checkers
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py39"
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"
[edgetest.envs.core]
python_version = "3.10"
extras = [
"tests",
"psycopg2",
"pg8000",
"snowflake",
]
command = "pytest tests -m 'not integration'"
upgrade = [
"boto3",
"PyYAML",
"pandas",
"numpy",
]