Skip to content

Commit f44091f

Browse files
committed
try pre-commit on multiple platforms
1 parent f0136d7 commit f44091f

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/pre-commit-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: pre-commit-ci
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
pre-commit:
13+
name: "Pre-commit checks"
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Run pre-commit
25+
uses: pre-commit-ci/lite-action@v1.0.1
26+
if: always()

.pre-commit-scripts/install_gettext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def main():
99
try:
1010
cmd = "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser;irm get.scoop.sh | iex;scoop install gettext"
1111
return subprocess.run(cmd, shell=True, check=True, executable=shutil.which("powershell"))
12-
exit(0)
1312
except Exception:
1413
print(
1514
NotImplementedError(

0 commit comments

Comments
 (0)