forked from timesler/facenet-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce754fd
commit 9e6028f
Showing
28 changed files
with
6,104 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# can be used to exclude certain regex patterns or paths | ||
exclude: '^$' | ||
# if set to true, fails on first failure | ||
fail_fast: false | ||
repos: | ||
# The following pre-commit hooks could be very useful. | ||
# They are not part of CI/CD, so use or remove them as you please | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: debug-statements | ||
- id: name-tests-test | ||
args: [ | ||
"--pytest-test-first" # test_.*\.py | ||
#"--pytest" # .*_test\.py | ||
#"--unittest" # test.*\.py | ||
] | ||
- id: check-added-large-files | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
args: ['--unsafe'] | ||
- id: check-toml | ||
- id: check-xml | ||
- id: detect-private-key | ||
|
||
- repo: https://gitlab.com/bmares/check-json5 | ||
rev: v1.0.0 | ||
hooks: | ||
- id: check-json5 | ||
|
||
- repo: https://github.com/DavidAnson/markdownlint-cli2 | ||
rev: v0.13.0 | ||
hooks: | ||
- id: markdownlint-cli2 | ||
args: [ "--fix", "--config", ".markdownlint.yaml" ] | ||
|
||
# part of CI/CD | ||
- repo: local | ||
hooks: | ||
- id: poetry-check | ||
name: poetry-check --lock | ||
description: run poetry check to validate config | ||
entry: poetry check --lock | ||
language: python | ||
pass_filenames: false | ||
files: ^(.*/)?pyproject\.toml$ | ||
# - id: poetry-export | ||
# name: poetry-export | ||
# description: run poetry export to sync lock file with requirements.txt | ||
# entry: poetry export | ||
# language: python | ||
# pass_filenames: false | ||
# files: ^(.*/)?poetry\.lock$ | ||
# args: ["-f", "requirements.txt", "-o", "requirements.txt"] | ||
# - id: poetry-export-dev | ||
# name: poetry-export --with-dev | ||
# description: run poetry export to sync lock file with requirements.txt | ||
# entry: poetry export | ||
# language: python | ||
# pass_filenames: false | ||
# files: ^(.*/)?poetry\.lock$ | ||
# args: ["--with", "dev", "-f", "requirements.txt", "-o", "requirements-dev.txt"] | ||
|
||
- id: ruff-format | ||
name: ruff-format | ||
description: "Run 'ruff format' for extremely fast Python formatting" | ||
entry: ruff format --force-exclude | ||
language: python | ||
types_or: [python, pyi] | ||
args: [] | ||
- id: ruff | ||
name: ruff | ||
description: Run 'ruff' for extremely fast Python linting | ||
entry: ruff check --force-exclude | ||
language: python | ||
types_or: [python, pyi] | ||
args: [--fix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ coverage: | |
status: | ||
project: off | ||
patch: off | ||
codecov: | ||
codecov: | ||
token: 1e4f3aaa-9c74-4888-9408-71cc7fcfb64c |
Oops, something went wrong.