Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- uses: pre-commit/action@v3.0.1
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ repos:
- launchable/*.py
- tests/*.py

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.7.0
- repo: https://github.com/hhatto/autopep8
rev: v2.3.2
hooks:
- id: autopep8
args:
Expand Down
1 change: 0 additions & 1 deletion build-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
bazel build //src/main/java/com/launchableinc/ingest/commits:exe_deploy.jar
bazel test //...
cp bazel-bin/src/main/java/com/launchableinc/ingest/commits/exe_deploy.jar launchable/jar/exe_deploy.jar

2 changes: 1 addition & 1 deletion launchable/commands/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from launchable.utils.env_keys import TOKEN_KEY
from launchable.utils.tracking import Tracking, TrackingClient

from ..utils.authentication import get_org_workspace, ensure_org_workspace
from ..utils.authentication import ensure_org_workspace, get_org_workspace
from ..utils.click import emoji
from ..utils.commands import Command
from ..utils.http_client import DEFAULT_BASE_URL
Expand Down
1 change: 0 additions & 1 deletion launchable/test_runners/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from . import launchable


subset = launchable.CommonSubsetImpls(__name__).scan_stdin()

record_tests = launchable.CommonRecordTestImpls(__name__).file_profile_report_files()
Expand Down
2 changes: 1 addition & 1 deletion launchable/utils/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .authentication import authentication_headers
from .env_keys import BASE_URL_KEY, SKIP_TIMEOUT_RETRY
from .gzipgen import compress as gzipgen_compress
from .logger import AUDIT_LOG_FORMAT, Logger
from .logger import Logger

DEFAULT_BASE_URL = "https://api.mercury.launchableinc.com"

Expand Down
1 change: 0 additions & 1 deletion tests/data/jasmine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ Request subset
cat test_list.txt | launchable subset --target 25% jasmine > subset.txt
npx jasmine $(cat subset.txt)
```

2 changes: 1 addition & 1 deletion tests/data/karma/subset_payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"session": { "id": "16" },
"getTestsFromGuess": false,
"getTestsFromPreviousSessions": false
}
}
1 change: 0 additions & 1 deletion tests/data/playwright/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion tests/test_runners/test_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
import sys
import unittest
from pathlib import Path
from unittest import mock

import responses # type: ignore
Expand Down
Loading