summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 12:55:19 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 12:55:19 +0200
commit3b630af52350a74fec71fc019631f82a077700b4 (patch)
tree950e8e368df85fc2ef81809f0d3dd362e1e43700
parentworkflows: reschedule for my convenience (diff)
downloadcmake-common-3b630af52350a74fec71fc019631f82a077700b4.tar.gz
cmake-common-3b630af52350a74fec71fc019631f82a077700b4.zip
workflows: add Python black run
-rw-r--r--.github/workflows/basic.yml6
-rw-r--r--pyproject.toml3
2 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml
index fc3f9f2..a0fd8d5 100644
--- a/.github/workflows/basic.yml
+++ b/.github/workflows/basic.yml
@@ -20,6 +20,12 @@ jobs:
uses: actions/checkout@v6
- name: Run clang-format
run: ./tools/project-clang-format.py
+ - name: Set up Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: '3.x'
+ - name: Run black
+ uses: psf/black@stable
# Check that the most basic use-case works on different OSs.
os:
diff --git a/pyproject.toml b/pyproject.toml
index 8bfa7c6..27d5b2a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,3 +39,6 @@ script-files = [
]
[tool.setuptools_scm]
+
+[tool.black]
+skip-string-normalization = true