Skip to content

Commit

Permalink
change file location
Browse files Browse the repository at this point in the history
  • Loading branch information
edenjenzohar committed Jun 17, 2024
1 parent a758f94 commit 511c1a8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 18 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/pre-commit.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
run: |
python -m pip install --upgrade pip pytest pytest-cov
python -m pip install -e .
python -m pip install pre-commit
- name: Run pre-commit hooks
run: |
python .github/workflows/pre-commit.yml run --all-files
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

- name: Create tasks needed for testing
run: |
Expand Down
35 changes: 35 additions & 0 deletions pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repos:
# default hooks provided by the pre-commit project
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
# mypy: type checking - caution this can be hard to satisfy also slow
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.910-1
# hooks:
# - id: mypy
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.284
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [ python, pyi, jupyter ]
# black: automatic pep8 compliance code formatting
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black

0 comments on commit 511c1a8

Please sign in to comment.