Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-support-datetime-zone-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Yashkov authored and Vladislav Yashkov committed Dec 3, 2024
2 parents 6ae6688 + cecec4a commit d20ffa6
Show file tree
Hide file tree
Showing 29 changed files with 536 additions and 826 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@ on:
pull_request:

jobs:
py-lint:
strategy:
matrix:
cmd:
- black
- isort
- ruff
- mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Run lint check
uses: pre-commit/[email protected]
with:
extra_args: -a ${{ matrix.cmd }}
fmt:
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 10 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
ci:
skip: [fmt, clippy, check]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: python isort
pass_filenames: false
always_run: true
args: ["python"]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
name: python black
pass_filenames: false
always_run: true
args: ["python"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
Expand All @@ -28,13 +15,18 @@ repos:
pass_filenames: false
args: ["python"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
rev: v0.8.1
hooks:
- id: ruff
name: ruff
pass_filenames: false
always_run: true
args: ["python", "--fix"]
- id: ruff-format
name: ruff
pass_filenames: false
always_run: true
args: ["python"]
- repo: local
hooks:
- id: fmt
Expand Down Expand Up @@ -77,4 +69,4 @@ repos:
entry: cargo
pass_filenames: false
args:
- check
- check
Loading

0 comments on commit d20ffa6

Please sign in to comment.