Skip to content

Commit

Permalink
Update stats.prql
Browse files Browse the repository at this point in the history
  • Loading branch information
orf authored Jul 31, 2023
1 parent 95eafb3 commit 0afd199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/stats.prql
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ let project_level_breakdowns = (
has_toml = (suffix path '.toml') && ! has_pyproject,
has_yaml = (suffix path '.yml') || (suffix path '.yaml'),

has_types = (suffix path 'py.typed') || (suffix path '.pyi')

is_init_py = suffix path '__init__.py',

has_rst = suffix path '.rst',
Expand All @@ -170,6 +172,8 @@ let project_level_breakdowns = (
has_toml = s"COUNT(DISTINCT {project_name}) FILTER ({has_toml})",
has_yaml = s"COUNT(DISTINCT {project_name}) FILTER ({has_yaml})",

has_types = s"COUNT(DISTINCT {project_name}) FILTER ({has_types})",

has_tests = s"COUNT(DISTINCT {project_name}) FILTER ({has_tests})",
has_pytest = s"COUNT(DISTINCT {project_name}) FILTER ({has_pytest})",
has_tox = s"COUNT(DISTINCT {project_name}) FILTER ({has_tox})",
Expand Down

0 comments on commit 0afd199

Please sign in to comment.