aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml6
-rw-r--r--pyproject.toml3
2 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ef0d594cc..fa40f4530 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -148,7 +148,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- - uses: psf/black@stable
+ - name: Install black version
+ run: |
+ python -m pip install --upgrade pip
+ pip install -e .[formatter]
+ black --check --diff .
gentoo-regen:
runs-on: ubuntu-latest
diff --git a/pyproject.toml b/pyproject.toml
index b129bd9a9..6ad4fb98e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,6 +45,9 @@ doc = [
"sphinx",
"tomli; python_version < '3.11'"
]
+formatter = [
+ "black ~= 24.1"
+]
[project.urls]
Homepage = "https://github.com/pkgcore/pkgcore"