aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-12-26 16:23:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-12-26 16:26:17 +0000
commitbb6968c2847e99ba89a7597ff5b8a31fb5dd9434 (patch)
tree9dc7ea8d3634ed4a5fc612a0eb97b65f8d413c2b
parentbox-drawing: fenv.h: remove, not needed anymore (diff)
ci: combine the codespell and mypy stages
They both need python and a venv, so let's combine them, to avoid having to install the same things twice.
-rw-r--r--.woodpecker.yaml22
-rw-r--r--pyproject.toml2
2 files changed, 5 insertions, 19 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml
index 35d52d67..5b4fa587 100644
--- a/.woodpecker.yaml
+++ b/.woodpecker.yaml
@@ -1,7 +1,7 @@
# -*- yaml -*-
steps:
- - name: codespell
+ - name: pychecks
when:
- event: [manual, pull_request]
- event: [push, tag]
@@ -11,26 +11,12 @@ steps:
- apk add openssl
- apk add python3
- apk add py3-pip
- - python3 -m venv codespell-venv
- - source codespell-venv/bin/activate
+ - python3 -m venv venv
+ - source venv/bin/activate
- pip install codespell
- - codespell
- - deactivate
-
- - name: mypy
- when:
- - event: [manual, pull_request]
- - event: [push, tag]
- branch: [master, releases/*]
- image: alpine:edge
- commands:
- - apk add openssl
- - apk add python3
- - apk add py3-pip
- - python3 -m venv mypy-venv
- - source mypy-venv/bin/activate
- pip install mypy
- pip install ruff
+ - codespell
- mypy
- ruff check
- deactivate
diff --git a/pyproject.toml b/pyproject.toml
index 654e632d..f5fc08a2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,5 +6,5 @@ files = '$MYPY_CONFIG_FILE_DIR/scripts'
strict = true
[tool.codespell]
-skip = 'pyproject.toml,./subprojects,./pkg,./src,./bld,foot.info,./unicode,.*-venv'
+skip = 'pyproject.toml,./subprojects,./pkg,./src,./bld,foot.info,./unicode,./venv'
ignore-regex = 'terminfo capability `rin`|\* Simon Ser|\* \[zar\]\(https://codeberg.org/zar\)|iterm theme|iterm.toml|iterm/OneHalfDark.itermcolors' \ No newline at end of file