🔧 更新(.pre-commit-config.yaml):增加针对Python代码的优化和格式化钩子

⬆️ 升级(requirements.txt):新增pycryptodome依赖包
This commit is contained in:
shitao 2024-01-13 08:59:52 +08:00
parent 47b7985f71
commit 31d09a7afa
2 changed files with 15 additions and 0 deletions

View File

@ -11,9 +11,22 @@ repos:
- id: mixed-line-ending - id: mixed-line-ending
- id: trailing-whitespace - id: trailing-whitespace
- id: fix-encoding-pragma - id: fix-encoding-pragma
args:
- --remove
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.2.2
hooks:
- id: auto-walrus
- repo: https://github.com/PyCQA/autoflake - repo: https://github.com/PyCQA/autoflake
rev: v2.2.1 rev: v2.2.1
hooks: hooks:
@ -29,6 +42,7 @@ repos:
rev: 5.12.0 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
args: ['--profile', 'black', '--filter-files']
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.9.1 rev: 23.9.1

View File

@ -1,3 +1,4 @@
pycryptodome==3.17
requests~=2.25.1 requests~=2.25.1
rsa~=4.0 rsa~=4.0
urllib3~=1.26.2 urllib3~=1.26.2