Skip to content

Commit

Permalink
Merge pull request #5 from oh2fih/lint-python-black
Browse files Browse the repository at this point in the history
Add Black workflow
  • Loading branch information
oh2fih authored Dec 26, 2023
2 parents 6bdd7af + 8837dc3 commit 8ae39ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/shellcheck.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: ShellCheck
name: Lint
on:
push:
pull_request:
branches:
- main

jobs:
shellcheck:
name: ShellCheck
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -18,3 +18,8 @@ jobs:
scandir: .
format: gcc
version: stable
- name: Black formatting (Python)
uses: psf/black@stable
with:
options: --check --verbose
src: .
2 changes: 1 addition & 1 deletion bin/test-cache-enabler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Tests whether the Cache Enabler by KeyCDN (WordPress) is working properly on
# Tests whether the Cache Enabler by KeyCDN (WordPress) is working properly on
# the URLs given as arguments. Also takes line break separated URLs from a pipe.
#
# Usage: test-cache-enabler.py https://example.com [...]
Expand Down

0 comments on commit 8ae39ff

Please sign in to comment.