forked from Devasy23/FaceRec
-
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.
Add pre-commit hooks and update requirements.txt (Devasy23#32)
* Add pre-commit hooks and update requirements.txt * Exclude testing directory from flake8 hook * Fix formatting issues and update dependencies * Add wily hook to pre-commit configuration * fix(.pre-commit-config.yaml): Add commitizen hook to pre-commit config * Updated Requirements * Added input sanitation * Converted logging.info() to logging.debug() * Removed tensorflow-intel==2.15.0 --------- Co-authored-by: Devansh Shah <[email protected]>
- Loading branch information
1 parent
7acd5af
commit e222588
Showing
32 changed files
with
568 additions
and
425 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 |
---|---|---|
|
@@ -6,5 +6,3 @@ labels: '' | |
assignees: '' | ||
|
||
--- | ||
|
||
|
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 |
---|---|---|
|
@@ -139,4 +139,4 @@ cython_debug/ | |
venv/ | ||
*.pyc | ||
.vscode/ | ||
__pyc | ||
__pyc |
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,52 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: double-quote-string-fixer | ||
- id: name-tests-test | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/asottile/setup-cfg-fmt | ||
rev: v2.5.0 | ||
hooks: | ||
- id: setup-cfg-fmt | ||
- repo: https://github.com/asottile/reorder-python-imports | ||
rev: v3.12.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: [--py38-plus, --add-import, 'from __future__ import annotations'] | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v3.1.0 | ||
hooks: | ||
- id: add-trailing-comma | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/hhatto/autopep8 | ||
rev: v2.1.0 | ||
hooks: | ||
- id: autopep8 | ||
# - repo: https://github.com/PyCQA/flake8 | ||
# rev: 7.0.0 | ||
# hooks: | ||
# - id: flake8 | ||
# exclude: testing/ | ||
# - repo: local | ||
# hooks: | ||
# - id: wily | ||
# name: wily | ||
# entry: wily diff | ||
# verbose: true | ||
# language: python | ||
# additional_dependencies: [wily] | ||
|
||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: master | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] |
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,17 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.0 | ||
hooks: | ||
- id: bandit | ||
files: \.py$ # Run Bandit only on Python files | ||
additional_dependencies: [toml] # Additional dependencies required by Bandit | ||
args: [--skip, B101] # Skip Bandit test B101 (assert statements) | ||
- repo: https://github.com/safepass-dev/safepass-pre-commit | ||
rev: v0.1.0 | ||
hooks: | ||
- id: safepass | ||
files: \.(py|yaml|yml|json)$ # Run Safepass on Python, YAML, and JSON files | ||
- repo: https://github.com/pyupio/safety-hooks | ||
rev: v2.0.3 | ||
hooks: | ||
- id: safety |
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
Oops, something went wrong.