Skip to content

Commit

Permalink
introduced pyright pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bigabig committed Oct 17, 2024
1 parent b24dde0 commit 4e2f5bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ repos:
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: pyright
name: "Pyright"
entry: bash -c 'ENV_NAME=dats source backend/_activate_current_env.sh && pyright'
language: system
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.11.0
hooks:
Expand Down
4 changes: 2 additions & 2 deletions backend/src/app/core/analysis/analysis_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,14 @@ def sample_sdocs_by_tags(
sample_fixed = (
df.groupby(by=list(groups))
.sample(n=min(n, min_count))
.groupby(by=list(groups))["sdoc"]
.groupby(by=list(groups))["sdoc"] # type: ignore
.apply(list)
.to_dict()
)
sample_relative = (
df.groupby(by=list(groups))
.sample(frac=frac)
.groupby(by=list(groups))["sdoc"]
.groupby(by=list(groups))["sdoc"] # type: ignore
.apply(list)
.to_dict()
)
Expand Down

0 comments on commit 4e2f5bb

Please sign in to comment.