Skip to content

Commit

Permalink
Merge pull request #383 from jpopelka/pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarefactory-project-zuul[bot] committed Feb 6, 2020
2 parents 8a71fa3 + cb4700d commit 14777bb
Show file tree
Hide file tree
Showing 64 changed files with 1,040 additions and 1,073 deletions.
76 changes: 42 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,53 @@
# pre-commit install

repos:
- repo: https://github.com/ambv/black
rev: 19.10b0
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
- id: black
language_version: python3.6
- repo: https://github.com/prettier/prettier
rev: 1.19.1
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
exclude: zuul.d
- id: detect-private-key
exclude: tests/conftest.py
- id: end-of-file-fixer
- id: trailing-whitespace
- id: flake8
args:
- --max-line-length=100
- --per-file-ignores=files/packit.wsgi:F401,E402
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.740
- id: prettier
exclude: tests_requre/test_data/*
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: mypy
- id: check-added-large-files
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
exclude: zuul.d
- id: detect-private-key
exclude: tests/conftest.py
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args:
- --max-line-length=100
- --per-file-ignores=files/packit.wsgi:F401,E402
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.761
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
- repo: https://github.com/packit-service/pre-commit-hooks
rev: f6251f4b3800b81faa653c0ef34ab15b2b278cc6
- repo: https://github.com/packit-service/pre-commit-hooks
rev: master
hooks:
- id: check-rebase
- id: check-rebase
args:
- git://github.com/packit-service/packit-service.git
- repo: https://github.com/packit-service/requre
- git://github.com/packit-service/packit-service.git
- repo: https://github.com/packit-service/requre
rev: master
hooks:
- id: requre-purge
name: Requre response files cleanup
description: Replace the sensitive/time-based values in the requre response files
entry: >
- id: requre-purge
name: Requre response files cleanup
description: Replace the sensitive/time-based values in the requre response files
entry: >
requre-patch purge
--replaces 'requests.sessions%send:Date:str:Fri, 01 Nov 2019 13-36-03 GMT'
--replaces 'requests.sessions%send:ETag:str:W/"1e51b8e1c48787a433405211e9e0fe61"'
Expand All @@ -56,6 +64,6 @@ repos:
--replaces "requests.sessions%_content:expires_at:str:2019-11-01T14:35:53Z"
--replaces "requests.sessions%send:elapsed:float:0.2"
--replaces "requests.sessions%_content:token:str:v1.1cd89d399b8c70f8b88e22cbdaa72abbe5e390db"
language: python
types: [yaml]
files: /tests_requre.*\.yaml$
language: python
types: [yaml]
files: /tests_requre.*\.yaml$
Loading

0 comments on commit 14777bb

Please sign in to comment.