:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
extend = "../pyproject.toml"
src = [".."]
[lint]
extend-select = ["ANN001", "ANN201", "ANN202", "ANN204"]
[lint.per-file-ignores]
"**/tests/**" = ["ANN"]
"**/test_*" = ["ANN"]
"**/migrations/**" = ["ANN"]
"**/management/**" = ["ANN"]
"**/skills/**" = ["ANN"]
"**/eval/**" = ["ANN"]
"**/evals/**" = ["ANN"]
"**/dags/**" = ["ANN"]
"**/scripts/**" = ["ANN"]
"**/stats/**" = ["ANN"]
# CLI; prints its report (T201).
"data_catalog/scripts/offline_governance_experiment.py" = ["T201"]
"logs/backend/pattern_replay.py" = ["T201"]
# ReviewHog eval experiments keep their analysis CLIs next to the results; the report they
# write is their stdout.
"review_hog/eval/experiments/*/scripts/**" = ["T201"]
# Temporarily exempted — too many violations to fix in one pass.
# Run: ruff check products/<name>/backend --select ANN --statistics
# to check remaining count before removing the exemption.
"actions/backend/**" = ["ANN"]
"alerts/backend/**" = ["ANN"]
"annotations/backend/**" = ["ANN"]
"approvals/backend/**" = ["ANN"]
"batch_exports/backend/**" = ["ANN"]
"cdp/backend/**" = ["ANN"]
"cohorts/backend/**" = ["ANN"]
"conversations/backend/**" = ["ANN"]
"customer_analytics/backend/**" = ["ANN"]
"dashboards/backend/**" = ["ANN"]
"data_modeling/backend/**" = ["ANN"]
"data_tools/backend/**" = ["ANN"]
"data_warehouse/backend/**" = ["ANN"]
"demo/backend/**" = ["ANN"]
"early_access_features/backend/**" = ["ANN"]
"endpoints/backend/**" = ["ANN"]
"error_tracking/backend/**" = ["ANN"]
"experiments/backend/**" = ["ANN"]
"exports/backend/**" = ["ANN"]
"feature_flags/backend/**" = ["ANN"]
"ai_observability/backend/**" = ["ANN"]
"logs/backend/**" = ["ANN"]
"managed_migrations/backend/**" = ["ANN"]
"managed_warehouse/backend/**" = ["ANN"]
"marketing_analytics/backend/**" = ["ANN"]
"messaging/backend/**" = ["ANN"]
"notebooks/backend/**" = ["ANN"]
"posthog_ai/eval_harness/**" = ["ANN"]
"product_analytics/backend/**" = ["ANN"]
"product_tours/backend/**" = ["ANN"]
"revenue_analytics/backend/**" = ["ANN"]
"signals/backend/**" = ["ANN"]
"surveys/backend/**" = ["ANN"]
"tasks/backend/**" = ["ANN"]
"visual_review/backend/**" = ["ANN"]
"web_analytics/backend/**" = ["ANN"]
"warehouse_sources/backend/**" = ["ANN"]
"warehouse_sources/sources/**" = ["ANN"]
"workflows/backend/**" = ["ANN"]
"access_control/backend/presentation/access_control.py" = ["ANN"]
"access_control/backend/presentation/role.py" = ["ANN"]
"access_control/backend/presentation/access_control_settings.py" = ["ANN"]
"access_control/backend/facade/user_access_control.py" = ["ANN"]
# PLC0415 exemptions. New products not listed here are enforced.
# Run `ruff check <product>/ --select PLC0415 --statistics` before removing an entry.
"access_control/**" = ["PLC0415"]
"actions/**" = ["PLC0415"]
"alerts/**" = ["PLC0415"]
"analytics_platform/**" = ["PLC0415"]
"annotations/**" = ["PLC0415"]
"approvals/**" = ["PLC0415"]
"batch_exports/**" = ["PLC0415"]
"business_knowledge/**" = ["PLC0415"]
"cdp/**" = ["PLC0415"]
"cohorts/**" = ["PLC0415"]
"conversations/**" = ["PLC0415"]
"customer_analytics/**" = ["PLC0415"]
"dashboards/**" = ["PLC0415"]
"data_modeling/**" = ["PLC0415"]
"data_tools/**" = ["PLC0415"]
"data_warehouse/**" = ["PLC0415"]
"demo/**" = ["PLC0415"]
"deployments/**" = ["PLC0415"]
"early_access_features/**" = ["PLC0415"]
"endpoints/**" = ["PLC0415"]
"error_tracking/**" = ["PLC0415"]
"experiments/**" = ["PLC0415"]
"exports/**" = ["PLC0415"]
"feature_flags/**" = ["PLC0415"]
"growth/**" = ["PLC0415"]
"legal_documents/**" = ["PLC0415"]
"ai_observability/**" = ["PLC0415"]
"logs/**" = ["PLC0415"]
"managed_migrations/**" = ["PLC0415"]
"managed_warehouse/**" = ["PLC0415"]
"marketing_analytics/**" = ["PLC0415"]
"mcp_analytics/**" = ["PLC0415"]
"mcp_store/**" = ["PLC0415"]
"messaging/**" = ["PLC0415"]
"notebooks/**" = ["PLC0415"]
"notifications/**" = ["PLC0415"]
"posthog_ai/**" = ["PLC0415"]
"product_analytics/**" = ["PLC0415"]
"product_tours/**" = ["PLC0415"]
"replay_vision/**" = ["PLC0415"]
"revenue_analytics/**" = ["PLC0415"]
"signals/**" = ["PLC0415"]
"slack_app/**" = ["PLC0415"]
"streamlit_apps/**" = ["PLC0415"]
"surveys/**" = ["PLC0415"]
"tasks/**" = ["PLC0415"]
"tracing/**" = ["PLC0415"]
"visual_review/**" = ["PLC0415"]
"warehouse_sources/**" = ["PLC0415"]
"web_analytics/**" = ["PLC0415"]