mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-14 21:40:14 +02:00
Update pre-commit hooks & run formatting
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
pull_request:
|
||||
paths:
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -23,4 +23,4 @@ jobs:
|
||||
close-pr-message: "This pull request has been closed due to lack of activity."
|
||||
days-before-pr-stale: ${{ env.PR_STALE_DAYS }}
|
||||
days-before-pr-close: ${{ env.PR_CLOSE_DAYS }}
|
||||
delete-branch: true
|
||||
delete-branch: true
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/rhysd/actionlint
|
||||
rev: v1.6.23
|
||||
rev: v1.6.26
|
||||
hooks:
|
||||
- id: actionlint
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.3.0
|
||||
rev: 24.1.1
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: 'v0.0.260'
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: 'v0.2.1'
|
||||
hooks:
|
||||
- id: ruff
|
||||
- repo: https://github.com/RobertCraigie/pyright-python
|
||||
rev: v1.1.301
|
||||
rev: v1.1.350
|
||||
hooks:
|
||||
- id: pyright
|
||||
- id: pyright
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
"""GitHub Action for Ruff."""
|
||||
|
||||
import os
|
||||
import re
|
||||
import shlex
|
||||
|
||||
+1
-1
@@ -51,4 +51,4 @@ reportMissingTypeStubs = false
|
||||
reportInvalidStringEscapeSequence = false
|
||||
|
||||
pythonVersion = "3.11"
|
||||
pythonPlatform = "Linux"
|
||||
pythonPlatform = "Linux"
|
||||
|
||||
Reference in New Issue
Block a user