forked from tekumara/fakesnow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
103 lines (92 loc) · 2.65 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
[project]
name = "fakesnow"
description = "Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally."
version = "0.9.6"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = ["License :: OSI Approved :: MIT License"]
keywords = ["snowflake", "snowflakedb", "fake", "local", "mock", "testing"]
requires-python = ">=3.9"
dependencies = [
"duckdb~=0.10.0",
"pyarrow",
"snowflake-connector-python",
"sqlglot~=23.3.0",
]
[project.urls]
homepage = "https://github.com/tekumara/fakesnow"
[project.scripts]
fakesnow = "fakesnow.cli:main"
[project.optional-dependencies]
dev = [
"build~=1.0",
# to fix https://github.com/pandas-dev/pandas/issues/56995
"pandas-stubs",
# include compatible version of pandas, and secure-local-storage for token caching
"snowflake-connector-python[pandas, secure-local-storage]",
"pre-commit~=3.4",
"pytest~=8.0",
"ruff~=0.3.2",
"twine~=5.0",
"snowflake-sqlalchemy~=1.5.0",
]
# for debugging, see https://duckdb.org/docs/guides/python/jupyter.html
notebook = ["duckdb-engine", "ipykernel", "jupysql"]
[build-system]
requires = ["setuptools~=69.1", "wheel~=0.42"]
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*", "node_modules*", "build*"]
[tool.pyright]
venvPath = "."
venv = ".venv"
exclude = ["**/node_modules", "**/__pycache__", "**/.*", "build"]
strictListInference = true
strictDictionaryInference = true
strictParameterNoneValue = true
reportTypedDictNotRequiredAccess = false
reportIncompatibleMethodOverride = true
reportUnnecessaryTypeIgnoreComment = true
[tool.ruff]
line-length = 120
# first-party imports for sorting
src = ["."]
fix = true
show-fixes = true
[tool.ruff.lint]
# rules to enable/ignore
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"ANN", # type annotations
"N", # pep8-naming
"B", # bugbear
"I", # isort
# "ARG", # flake8-unused-arguments - disabled because our fakes don't use all arguments
"SLF", # flake8-self
"UP", # pyupgrade
"PERF", # perflint
"RUF", # ruff-specific
"SIM", # flake8-simplify
"S113", # request-without-timeout
"A", # flake8-builtins
]
ignore = [
# allow untyped self and cls args
"ANN101",
"ANN102",
# allow no return type from dunder methods
"ANN204",
# allow == True because pandas dataframes overload equality
"E712",
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
[tool.ruff.lint.per-file-ignores]
# test functions don't need return types
"tests/*" = ["ANN201", "ANN202"]
[tool.ruff.lint.flake8-annotations]
# allow *args: Any, **kwargs: Any
allow-star-arg-any = true