Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jan 11, 2024
1 parent fc7f485 commit 06a208d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 42 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ on:
branches: master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-python@v2.3.1
- uses: pre-commit/action@v2.0.3
type-check:
name: mypy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Set up Python 3.8
uses: actions/setup-python@v2.3.1
with:
python-version: 3.8
- name: Install isort
run: |
python -m pip install mypy
- name: mypy check
run: |
mypy dac_costing
test:
name: ${{ matrix.python-version }}-build
runs-on: ubuntu-latest
Expand Down
52 changes: 32 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,42 @@
ci:
autofix_prs: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: mixed-line-ending

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: pyupgrade
args:
- "--py38-plus"

- repo: https://github.com/ambv/black
rev: 20.8b1
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: ["--line-length", "100"]
- id: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
- repo: https://github.com/keewis/blackdoc
rev: v0.3.8
hooks:
- id: flake8
- id: blackdoc

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.260"
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
- id: ruff
args: ["--fix"]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: isort
- id: prettier

0 comments on commit 06a208d

Please sign in to comment.