aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/check.yml13
-rw-r--r--Justfile7
2 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
new file mode 100644
index 0000000..3b19e6b
--- /dev/null
+++ b/.github/workflows/check.yml
@@ -0,0 +1,13 @@
+on: [push, pull_request]
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v3
+ with:
+ python-version: "3.12"
+ - uses: taiki-e/install-action@just
+ - run: |
+ pip install -r requirements.txt
+ just check
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..5c62e93
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,7 @@
+check: typecheck lint
+
+typecheck:
+ pyright
+
+lint:
+ black --check *.py