From 580dafb9afdd011533ffe9b6725e5e1b7e2a88fe Mon Sep 17 00:00:00 2001 From: cruld Date: Sat, 29 Mar 2025 21:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(config):=20=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=88=B0Python?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将.pre-commit-config.yaml移动到Python目录以便于管理 - 其他相关文件也进行了相应的重命名和移动 --- .../.pre-commit-config.yaml | 50 +++++++++---------- .../Library/.cursorrules_Python_Lib | 0 .../Web/.cursorrules | 0 .../Web/.gitignore | 0 .../Web/Dockerfile | 0 .../Web/Jenkinsfile | 0 6 files changed, 25 insertions(+), 25 deletions(-) rename .pre-commit-config.yaml => Python/.pre-commit-config.yaml (95%) rename .cursorrules_Python_Lib => Python/Library/.cursorrules_Python_Lib (100%) rename .cursorrules_Python_Fastapi => Python/Web/.cursorrules (100%) rename .gitignore_Python_Fastapi => Python/Web/.gitignore (100%) rename Dockerfile_python_fastapi => Python/Web/Dockerfile (100%) rename Jenkinsfile_Python_Fastapi => Python/Web/Jenkinsfile (100%) diff --git a/.pre-commit-config.yaml b/Python/.pre-commit-config.yaml similarity index 95% rename from .pre-commit-config.yaml rename to Python/.pre-commit-config.yaml index 9b9263d..cadf5ab 100644 --- a/.pre-commit-config.yaml +++ b/Python/.pre-commit-config.yaml @@ -1,25 +1,25 @@ -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: check-added-large-files - - id: check-merge-conflict - - id: check-symlinks - - id: mixed-line-ending - - id: debug-statements - -- repo: https://github.com/psf/black - rev: 24.3.0 - hooks: - - id: black - language_version: python3.12 - -- repo: https://github.com/pycqa/isort - rev: 5.13.2 - hooks: - - id: isort - name: isort (python) - args: ["--profile", "black"] +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: check-added-large-files + - id: check-merge-conflict + - id: check-symlinks + - id: mixed-line-ending + - id: debug-statements + +- repo: https://github.com/psf/black + rev: 24.3.0 + hooks: + - id: black + language_version: python3.12 + +- repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + name: isort (python) + args: ["--profile", "black"] diff --git a/.cursorrules_Python_Lib b/Python/Library/.cursorrules_Python_Lib similarity index 100% rename from .cursorrules_Python_Lib rename to Python/Library/.cursorrules_Python_Lib diff --git a/.cursorrules_Python_Fastapi b/Python/Web/.cursorrules similarity index 100% rename from .cursorrules_Python_Fastapi rename to Python/Web/.cursorrules diff --git a/.gitignore_Python_Fastapi b/Python/Web/.gitignore similarity index 100% rename from .gitignore_Python_Fastapi rename to Python/Web/.gitignore diff --git a/Dockerfile_python_fastapi b/Python/Web/Dockerfile similarity index 100% rename from Dockerfile_python_fastapi rename to Python/Web/Dockerfile diff --git a/Jenkinsfile_Python_Fastapi b/Python/Web/Jenkinsfile similarity index 100% rename from Jenkinsfile_Python_Fastapi rename to Python/Web/Jenkinsfile