Skip to content

Commit

Permalink
CI: update trigger & pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jun 11, 2021
1 parent bf916bf commit ab24083
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci_install-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ name: Install pkg
on: # Trigger the workflow on push or pull request, but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
pull_request: {}

jobs:
pkg-check:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI testing

# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch
push: {}
pull_request:
push:
branches: [ main ]
pull_request: {}

jobs:
pytest:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Code formatting

# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch
push: {}
pull_request:
push:
branches: [ main ]
pull_request: {}

jobs:
pep8-flake8:
Expand Down
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: check-yaml
- id: pretty-format-json
- id: check-toml
- id: check-added-large-files
args: ["--maxkb 250"]
- id: check-docstring-first
- id: detect-private-key

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.7
Expand All @@ -26,15 +31,13 @@ repos:
hooks:
- id: isort
name: imports
require_serial: false

- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.31.0
hooks:
- id: yapf
name: formatting
language: python
require_serial: false

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
Expand Down

0 comments on commit ab24083

Please sign in to comment.