Skip to content

Commit

Permalink
Fix metric computation callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasteuwen committed Sep 18, 2023
1 parent 4fd73a7 commit f7a5e0d
Show file tree
Hide file tree
Showing 8 changed files with 379 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ ignore_missing_imports = True

# TODO: This needs to be fixed obviously
[mypy-dlup.*]
ignore_errors = True
ignore_errors = True
49 changes: 49 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
# Ignore the configuration files
hooks:
- id: flake8
exclude: ^docs/
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: local # Use pylint from local environment as it requires to import packages
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
args: [--strict]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
- repo: local # Use pylint from local environment as it requires to import packages
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]
Loading

0 comments on commit f7a5e0d

Please sign in to comment.