Skip to content

Commit bee2085

Browse files
authored
Merge pull request #115 from JTJag/chore/pre-commit-tests
chore(pre-commit): add pre-push pytest coverage hook
2 parents 104ebda + 305783a commit bee2085

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TELEGRAM_API_HASH=0123456789abcdef0123456789abcdef
66
# Option 1: File-based session (a .session file will be created)
77
TELEGRAM_SESSION_NAME=telegram_session
88
# Option 2: String-based session
9-
TELEGRAM_SESSION_STRING=1231231232erfdfdffd
9+
# TELEGRAM_SESSION_STRING=1231231232erfdfdffd
1010

1111
# --- Multiple accounts ---
1212
# Add _<LABEL> suffix to session variables. Labels become account identifiers.

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ repos:
3838
language: system
3939
pass_filenames: false
4040
stages: [pre-push]
41+
- id: pytest-coverage-ci
42+
name: pytest with coverage (ci parity)
43+
entry: uv run --env-file .env.example pytest --cov --cov-report=term-missing --cov-report=xml
44+
language: system
45+
pass_filenames: false
46+
stages: [pre-push]

0 commit comments

Comments
 (0)