Skip to content

Commit

Permalink
.pre-commit-config.yaml: Run the don't-commit-to-master check early
Browse files Browse the repository at this point in the history
and fix running pytype (it's configuration moved to pyproject.toml)
  • Loading branch information
bernhardkaindl committed Aug 2, 2023
1 parent 43a8d82 commit 144ec66
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ repos:
entry: Binaries are not allowed in this repository, generate data if needed
types: [binary]
language: fail
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: no-commit-to-branch
args: [--branch, master]
always_run: true
- repo: https://github.com/akaihola/darker
rev: 1.7.1
hooks:
Expand Down Expand Up @@ -68,7 +74,6 @@ repos:
verbose: true
language: python
language_version: python3.8
args: ["--config=.github/workflows/pytype.cfg"]
require_serial: true
additional_dependencies: [pytype]
- id: pytest
Expand Down Expand Up @@ -101,6 +106,3 @@ repos:
- id: mixed-line-ending
args: ['--fix=lf']
description: Replace line endings with LF
- id: no-commit-to-branch
args: [--branch, master]
always_run: true

0 comments on commit 144ec66

Please sign in to comment.