|
| 1 | +exclude: "build|.git/|.tox|dist|.+.egg-info" |
| 2 | +default_stages: [commit] |
| 3 | +fail_fast: true |
| 4 | +default_language_version: |
| 5 | + python: python3 # force all unspecified python hooks to run python3 |
| 6 | +repos: |
| 7 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 8 | + rev: v4.3.0 |
| 9 | + hooks: |
| 10 | + - id: trailing-whitespace |
| 11 | + - id: end-of-file-fixer |
| 12 | + - id: check-yaml |
| 13 | + - id: check-added-large-files |
| 14 | + |
| 15 | + - repo: https://github.com/PyCQA/isort |
| 16 | + rev: 5.10.1 |
| 17 | + hooks: |
| 18 | + - id: isort |
| 19 | + |
| 20 | + - repo: https://github.com/psf/black |
| 21 | + rev: 22.6.0 |
| 22 | + hooks: |
| 23 | + - id: black |
| 24 | + args: ["--line-length", "120"] |
| 25 | + |
| 26 | + - repo: https://github.com/pycqa/flake8 |
| 27 | + rev: 6.0.0 |
| 28 | + hooks: |
| 29 | + - id: flake8 |
| 30 | + language_version: python3 |
| 31 | + additional_dependencies: |
| 32 | + - "pep8-naming" |
| 33 | + args: |
| 34 | + - --ignore-names=setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,startTestRun,stopTestRun |
| 35 | + |
| 36 | + - repo: https://github.com/pre-commit/mirrors-prettier |
| 37 | + rev: v2.7.1 |
| 38 | + hooks: |
| 39 | + - id: prettier |
| 40 | + |
| 41 | + - repo: https://github.com/windpioneers/pre-commit-hooks |
| 42 | + rev: 0.0.5 |
| 43 | + hooks: |
| 44 | + - id: check-branch-name |
| 45 | + args: |
| 46 | + - "^main$" |
| 47 | + - "^development$" |
| 48 | + - "^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 49 | + - "^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 50 | + - "^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 51 | + - "^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 52 | + - "^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 53 | + - "^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 54 | + - "^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 55 | + - "^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 56 | + - "^test/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 57 | + - "^style/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 58 | + - "^deprecation/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 59 | + - "^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" |
| 60 | + |
| 61 | + - repo: https://github.com/octue/conventional-commits |
| 62 | + rev: 0.8.1 |
| 63 | + hooks: |
| 64 | + - id: check-commit-message-is-conventional |
| 65 | + stages: [commit-msg] |
0 commit comments