Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2024
1 parent 3ecd872 commit ce67cea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pycafe-dashboards-in-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
RUN_ID: ${{ github.run_id }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.inputs.pr_number }}
PR_NUMBER: ${{ github.event.inputs.pr_number }}
GITHUB_OWNER: mckinsey

run: |
cd vizro-core
hatch run python ../tools/pycafe/test.py vizro-core/examples/scratch_dev/
hatch run python ../tools/pycafe/test.py vizro-core/examples/scratch_dev/
19 changes: 9 additions & 10 deletions tools/pycafe/test.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import os
import sys
from github import Auth, Github
import subprocess
from pathlib import Path
import textwrap
import base64
import gzip
import json
import os
import subprocess
import sys
import textwrap
from pathlib import Path
from urllib.parse import quote, urlencode

from github import Auth, Github

GITHUB_TOKEN = str(os.getenv('GITHUB_TOKEN'))
REPO_NAME = str(os.getenv('GITHUB_REPOSITORY'))
PR_NUMBER = int(os.getenv('PR_NUMBER'))
GITHUB_TOKEN = str(os.getenv("GITHUB_TOKEN"))
REPO_NAME = str(os.getenv("GITHUB_REPOSITORY"))
PR_NUMBER = int(os.getenv("PR_NUMBER"))

# COMMIT_HASH = str(os.getenv("COMMIT_HASH"))
RUN_ID = str(os.getenv("RUN_ID"))
Expand All @@ -31,7 +31,6 @@
COMMIT_SHA = pr.head.sha



def generate_link(directory):
base_url = f"https://raw.githubusercontent.com/mckinsey/vizro/{COMMIT_SHA}/{DIRECTORY}"

Expand Down

0 comments on commit ce67cea

Please sign in to comment.