浏览代码

Merge branch 'dev'

Sean 2 年之前
父节点
当前提交
29217a8782
共有 5 个文件被更改,包括 262 次插入379 次删除
  1. 1 1
      .drone.yml
  2. 9 9
      .pre-commit-config.yaml
  3. 1 1
      Dockerfile
  4. 250 367
      poetry.lock
  5. 1 1
      pyproject.toml

+ 1 - 1
.drone.yml

@@ -39,7 +39,7 @@ steps:
           - renovate/*
 
   - name: pypi_publish
-    image: python:3.11
+    image: python:3.12
     volumes:
       - name: poetry_cache
         path: /root/.cache/pypoetry/virtualenvs

+ 9 - 9
.pre-commit-config.yaml

@@ -3,12 +3,12 @@ exclude: ^(data/.*|.vscode/.*|poetry.lock)$
 repos:
   - repo: https://github.com/commitizen-tools/commitizen
     # Please run `pre-commit install --hook-type commit-msg` to check commit messages
-    rev: 3.2.1
+    rev: v3.13.0
     hooks:
       - id: commitizen
 
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.4.0
+    rev: v4.5.0
     hooks:
       - id: check-yaml
       - id: check-json
@@ -22,31 +22,31 @@ repos:
         args: ["--maxkb=1000"]
 
   - repo: https://github.com/codespell-project/codespell.git
-    rev: v2.2.4
+    rev: v2.2.6
     hooks:
       - id: codespell
         name: codespell
 
   - repo: https://github.com/asottile/pyupgrade
-    rev: v3.4.0
+    rev: v3.15.0
     hooks:
       - id: pyupgrade
         args: [--py39-plus]
 
   - repo: https://github.com/hadialqattan/pycln
-    rev: v2.1.3
+    rev: v2.4.0
     hooks:
       - id: pycln
         name: pycln (python)
         args: [--config=pyproject.toml]
 
   - repo: https://github.com/psf/black
-    rev: 23.3.0
+    rev: 23.12.1
     hooks:
       - id: black
 
   - repo: https://github.com/pycqa/isort
-    rev: 5.12.0
+    rev: 5.13.2
     hooks:
       - id: isort
         name: isort (python)
@@ -58,14 +58,14 @@ repos:
         name: pydocstyle
 
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v1.2.0
+    rev: v1.8.0
     hooks:
       - id: mypy
         name: mypy
         additional_dependencies: ["types-pytz"]
 
   - repo: https://github.com/pycqa/pylint
-    rev: v2.17.4
+    rev: v3.0.3
     hooks:
       - id: pylint
         types: [python]

+ 1 - 1
Dockerfile

@@ -1,4 +1,4 @@
-FROM python:3.11-slim as Runner
+FROM python:3.12-slim as Runner
 
 # Env
 ENV IS_DOCKER=true

文件差异内容过多而无法显示
+ 250 - 367
poetry.lock


+ 1 - 1
pyproject.toml

@@ -18,7 +18,7 @@ OTPpy = "^0.1.2"
 black = "^23.1.0"
 pre-commit = "^3.0.4"
 pydocstyle = "^6.1.1"
-pylint = "^2.16.2"
+pylint = "^3.0.3"
 mypy = "^1.0.1"
 pytest = "^7.2.1"
 

部分文件因为文件数量过多而无法显示