Skip to content

Commit

Permalink
Added unittests to pre-push
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzery committed Nov 4, 2023
1 parent 1ab5d8f commit 2ad4543
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,28 @@ repos:
language_version: python3.12
args: [--strict, --ignore-missing-imports]

- repo: https://github.com/pylint-dev/pylint
rev: v3.0.2
hooks:
- id: pylint
args: [src, tests, server.py, client.py]
stages: [pre-push]
- repo: https://github.com/pylint-dev/pylint
rev: v3.0.2
hooks:
- id: pylint
args: [src, tests, server.py, client.py]
stages: [pre-push]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]
- repo: local
hooks:
- id: unittests
name: run unit tests
pass_filenames: false
entry: python3 -m unittest
args: ["discover", "-s tests"]
language: system
stages: [pre-push]
types: [python]

0 comments on commit 2ad4543

Please sign in to comment.