Ctrl K
ComunidadGuías…

pyproject.toml

Rama develop · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
[project]
name = "insights"
authors = [
    { name = "Powerful Reporting Tool for Frappe Apps", email = "hello@frappe.io"}
]
description = "Open Source Business Intelligence Tool"
requires-python = ">=3.10"
readme = "README.md"
dynamic = ["version"]
dependencies = [
    "pandas~=2.3.3",
    "SQLAlchemy==2.0.41",
    "python-telegram-bot==21.4",
    "duckdb~=1.4.3",
    "sqlglot~=30.22.0",
    "ibis-framework~=11.0.0",  # when this moves to 12, delete connectors/compilers.py, the Insights DuckDB, ClickHouse and BigQuery compilers that use it, and `_hide_ctes_from_ibis`: ibis 12 passes sqlglot's `except_` and `with_` (ibis#11767)
    "ibis-framework[duckdb]",
    "ibis-framework[mysql]",
    "ibis-framework[sqlite]",
    "ibis-framework[clickhouse]",
    "ibis-framework[postgres]",
    # "ibis-framework[mssql]",
    # "ibis-framework[bigquery]",
    "psycopg[binary]",
]

[tool.bench.frappe-dependencies]
frappe = ">=15.0.0,<18.0.0"

[tool.bench.assets]
build_dir = "./frontend"
out_dir = "./insights/public/frontend"
index_html_path = "./insights/www/_insights.html"

[project.optional-dependencies]
test = [
    "coverage~=7.10.0",
]

[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"

[tool.bench.dev-dependencies]
coverage = "~=7.10.0"


[tool.ruff]
line-length = 110
target-version = "py310"

[tool.ruff.lint]
select = [
    "F",
    "E",
    "W",
    "I",
    "UP",
    "B",
    "RUF",
]
ignore = [
    "B017", # assertRaises(Exception) - should be more specific
    "B018", # useless expression, not assigned to anything
    "B023", # function doesn't bind loop variable - will have last iteration's value
    "B904", # raise inside except without from
    "E101", # indentation contains mixed spaces and tabs
    "E402", # module level import not at top of file
    "E501", # line too long
    "E741", # ambiguous variable name
    "E731", # do not assign a lambda expression, use a def
    # "F401", # "unused" imports
    "F403", # can't detect undefined names from * import
    "F405", # can't detect undefined names from * import
    "F722", # syntax error in forward type annotation
    "W191", # indentation contains tabs
    "RUF001", # string contains ambiguous unicode character
]
typing-modules = ["frappe.types.DF"]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true

[project.urls]
Homepage = "https://frappe.io/insights"
Repository = "https://github.com/frappe/insights.git"
"Bug Reports" = "https://github.com/frappe/insights/issues"