add .orf extension and install precommit hook

This commit is contained in:
deng 2024-02-03 19:52:47 +08:00
parent 6d705f9108
commit 87974de400
3 changed files with 22 additions and 1 deletions

2
.flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
extend-ignore = E501

19
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,19 @@
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-yaml
- id: check-docstring-first
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: conda
types: [python]
always_run: true

View File

@ -60,6 +60,6 @@ if __name__ == '__main__':
image_dir = Path(image_dir)
if not extensions:
extensions = '*.[pPjJrRhH][nNpPaAeE][gGeEwWiI]*'
extensions = '*.[pPjJrRhHoO][nNpPaAeErR][gGeEwWiIfF]*'
main(image_dir=image_dir, extensions=extensions)