Skip to content

Commit

Permalink
check in pre-commit hooks config
Browse files Browse the repository at this point in the history
  • Loading branch information
leigh-johnson committed Aug 10, 2023
1 parent 34747e3 commit b217ba9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Duet 3D Plugin

name: CI
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
Expand All @@ -19,7 +18,7 @@ jobs:
plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout PrintNanny Factory
- name: Checkout Source
uses: actions/checkout@v3
- name: Checkout DuetWebControl
uses: actions/checkout@v3
Expand Down
56 changes: 56 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.45.0
hooks:
- id: eslint
args:
[
"--ext",
".vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
"--fix",
"--ignore-path",
".gitignore",
"ui/",
]

- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
hooks:
- id: pyupgrade
args: [--py311-plus]

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8

# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:
autoupdate_schedule: weekly
skip: []
submodules: false
File renamed without changes.

0 comments on commit b217ba9

Please sign in to comment.