forked from Snowflake-Labs/Sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (66 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
76 lines (66 loc) · 2.55 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
[tool.poetry]
name = "Sentry"
version = "0.1.0"
authors = ["Vladimir Timofeenko <vladimir.timofeenko@snowflake.com>"]
description = "Repository of security-related queries for Snowflake"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Snowflake-Labs/Sentry"
homepage = "https://github.com/Snowflake-Labs/Sentry"
[tool.poetry.dependencies]
python = "~3.11"
streamlit = "1.35.0"
snowflake-snowpark-python = "1.26.0"
pydantic = "2.10.3"
tabulate = "0.9.0"
toolz = "0.12.0"
# Pinned deps from https://repo.anaconda.com/pkgs/snowflake/
idna = "3.7"
setuptools = "75.1.0"
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
black = "^24.3.0"
ruff = "^0.3.0"
watchdog = "^4.0.0"
pytest = "^8.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
known_first_party = "poetry"
[tool.black]
# Debatable, but on modern displays is OK
# Making explicit in the config file
line-length = 120
[tool.ruff.lint]
select = [
"A", # flake builtins
"D", # docstyle, very angry
"N", # pep8-naming
"TID", # for banned inputs
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"streamlit.file_uploader".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.cache_data".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.cache_resource".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.camera_input".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.chat_message".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.chat_input".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.download_button".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.bokeh_chart".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.scatter_chart".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.set_page_config".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.components".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.experimental_set_query_params".msg = "This feature is not supported in Streamlit in Snowflake"
"streamlit.experimental_get_query_params".msg = "This feature is not supported in Streamlit in Snowflake"
[tool.pytest.ini_options]
# Test directory
testpaths = [ "tests" ]
# Source code of the app is at ./src
pythonpath = [ "src" ]
markers = [
"online: Run tests requiring connection to Snowflake"
]