0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
posthog/.deepsource.toml
Sanket Saurav 55cd0dcfb1
Fix some bug risks and code quality issues
Changes:
 - Fix dangerous default argument {} used in posthog/urls.py
 - Remove unnecessary list comprehension in posthog/api/funnel.py
 - Remove redundant import `Funnel` in posthog/api/funnel.py
 - Use `in` instead of multiple comparions in posthog/api/action.py,
posthog/api/event.py, and posthog/models.py

Also added .deepsource.toml file to configure and run continuous static
analysis with DeepSource.
2020-02-21 14:51:44 -08:00

27 lines
341 B
TOML

version = 1
test_patterns = [
"**/test_*.py",
]
exclude_patterns = [
"**/migrations/*.py",
]
[[analyzers]]
name = "python"
enabled = true
[analyzers.meta]
runtime_version = "3.x.x"
[[analyzers]]
name = "docker"
enabled = true
[analyzers.meta]
dockerfile_paths = [
"preview.Dockerfile",
"production.Dockerfile",
]