Skip to content

Commit 3ae3d1e

Browse files
move "black" requirements to codestyle.txt
1 parent 58a7eca commit 3ae3d1e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
flake8
1818
- name: Check formatting with black
1919
run: |
20-
pip install black
20+
pip install -r requirements.d/codestyle.txt
2121
black --check .
2222
test:
2323
needs: lint
@@ -62,9 +62,9 @@ jobs:
6262
pip install codecov
6363
pip install -e .
6464
- name: Run tox
65-
run: |
65+
run: |
6666
tox --skip-missing-interpreters
6767
- name: Upload coverage to Codecov
6868
uses: codecov/codecov-action@v1
6969
with:
70-
token: ${{ secrets.CODECOV_TOKEN }}
70+
token: ${{ secrets.CODECOV_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ env_list = ["py39", "py310", "py311", "py312", "py313", "flake8", "black"]
7575
[tool.tox.env_run_base]
7676
package = "editable-legacy"
7777
commands = [["pytest", "-v", "-rs", "--cov=borg_import", "--cov-config=pyproject.toml", "--pyargs", "{posargs:borg_import}"]]
78-
deps = ["-rrequirements.d/development.txt"]
78+
deps = ["-rrequirements.d/development.txt", "-rrequirements.d/codestyle.txt"]
7979
passenv = ["*"]
8080

8181
[tool.tox.env_pkg_base]

requirements.d/codestyle.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
black >=24.0, <25

requirements.d/development.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ tox
33
pytest
44
pytest-cov
55
flake8-pyproject
6-
black
76
pre-commit

0 commit comments

Comments
 (0)