Skip to content

Commit

Permalink
(#890): CV trainer that does run evaluation on prevalent cases
Browse files Browse the repository at this point in the history
Fixes #890
  • Loading branch information
HLasse committed Apr 26, 2024
1 parent 7aa0cc8 commit e04c5c4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
42 changes: 21 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
default_stages: [commit]
# default_stages: [commit]

repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff
args:
[
"--extend-select",
"F401",
"--extend-select",
"F841",
"--extend-select",
"B007",
"--fix",
]
- id: ruff-format
# repos:
# - repo: https://github.com/charliermarsh/ruff-pre-commit
# rev: v0.1.14
# hooks:
# - id: ruff
# args:
# [
# "--extend-select",
# "F401",
# "--extend-select",
# "F841",
# "--extend-select",
# "B007",
# "--fix",
# ]
# - id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v4.5.0
# hooks:
# - id: check-yaml
56 changes: 28 additions & 28 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
# pre-push:
# # EXAMPLE USAGE:
# #
# # Refer for explanation to following link:
# # https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
# #
# # pre-push:
# # commands:
# # packages-audit:
# # tags: frontend security
# # run: yarn audit
# # gems-audit:
# # tags: backend security
# # run: bundle audit
# #
# pre-commit:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
pre-commit:
commands:
format:
glob: "*.{py}"
run: ruff format {staged_files}
stage_fixed: true
lint:
glob: "*.{py}"
run: ruff --fix --extend-select F401 --extend-select F841 --extend-select B007 {staged_files}
stage_fixed: true
# format:
# glob: "*.{py}"
# run: ruff format {staged_files}
# stage_fixed: true
# lint:
# glob: "*.{py}"
# run: ruff --fix --extend-select F401 --extend-select F841 --extend-select B007 {staged_files}
# stage_fixed: true

test:
commands:
test:
glob: "*.{py}"
run: echo {staged_files} >/dev/null && inv test
# test:
# commands:
# test:
# glob: "*.{py}"
# run: echo {staged_files} >/dev/null && inv test

0 comments on commit e04c5c4

Please sign in to comment.