From d990bbb2aebc2be1014720862a9e068ec320863f Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sat, 28 May 2022 15:26:26 +0800 Subject: =?UTF-8?q?=F0=9F=91=B7=20=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E7=9A=84CI=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint.yml | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f3f4a8d..a0412f1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Python 🐍 uses: actions/setup-python@v3.1.2 with: - python-version: 3.8 + python-version: 3.10 - uses: Gr1N/setup-poetry@v7 @@ -33,52 +33,17 @@ jobs: - name: Install Dependencies πŸ”§ env: - POETRY_VIRTUALENVS_CREATE: "false" + POETRY_VIRTUALENVS_CREATE: "true" run: | poetry install python -m pip install --upgrade pip - pip install flake8 + pip install black - name: Run Linters uses: wearerequired/lint-action@v2.0.0 with: auto_fix: true black: true + black_auto_fix: true commit_message: ":rotating_light: θ‡ͺεŠ¨θΏ›θ‘Œδ»£η ζ ΌεΌεŒ–" git_email: noreply@github.com - - analyze: - runs-on: ubuntu-latest - name: CodeQL Analyze - - steps: - - name: Checkout πŸ›ŽοΈ - uses: actions/checkout@v2 - - - name: Setup Python 🐍 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - uses: Gr1N/setup-poetry@v4 - - - uses: actions/cache@v2 - with: - path: ~/.cache/pypoetry - key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} - - - name: Install Dependencies πŸ”§ - env: - POETRY_VIRTUALENVS_CREATE: "false" - run: | - poetry install - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: python - # Override the default behavior so that the action doesn't attempt - # to auto-install Python dependencies - setup-python-dependencies: false - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 -- cgit v1.2.3