From 31d09a7afa4f937dc54a565a9069f7eb878efe76 Mon Sep 17 00:00:00 2001 From: shitao <133397418@qq.com> Date: Sat, 13 Jan 2024 08:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E6=9B=B4=E6=96=B0(.pre-commit-c?= =?UTF-8?q?onfig.yaml)=EF=BC=9A=E5=A2=9E=E5=8A=A0=E9=92=88=E5=AF=B9Python?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=9A=84=E4=BC=98=E5=8C=96=E5=92=8C=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=92=A9=E5=AD=90=20=E2=AC=86=EF=B8=8F=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7(requirements.txt)=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?pycryptodome=E4=BE=9D=E8=B5=96=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 14 ++++++++++++++ requirements.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61fb282..965cc0e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,9 +11,22 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - id: fix-encoding-pragma + args: + - --remove - id: requirements-txt-fixer - 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 rev: v2.2.1 hooks: @@ -29,6 +42,7 @@ repos: rev: 5.12.0 hooks: - id: isort + args: ['--profile', 'black', '--filter-files'] - repo: https://github.com/psf/black rev: 23.9.1 diff --git a/requirements.txt b/requirements.txt index 71cbef5..e839041 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +pycryptodome==3.17 requests~=2.25.1 rsa~=4.0 urllib3~=1.26.2