aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2024-01-26 14:43:55 -0800
committerArthur Zamarin <arthurzam@gentoo.org>2024-03-09 20:07:10 +0200
commit79540b64fa272904ebe23bb44d9f30abe7b1378f (patch)
tree3e8cc7beb5613e05c5e53ef21bd2f59ed6469d2d
parentAdd git@ (diff)
downloadpkgcore-79540b64fa272904ebe23bb44d9f30abe7b1378f.tar.gz
pkgcore-79540b64fa272904ebe23bb44d9f30abe7b1378f.tar.bz2
pkgcore-79540b64fa272904ebe23bb44d9f30abe7b1378f.zip
GH: use whatever black version is defined in pyproject.toml
This avoids black releasing a new version and all of our tests failure due to the formatter changing. The downside here is we probably want a notification that black can be upgraded. Signed-off-by: Brian Harring <ferringb@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-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"