Skip to content

Commit a2f38f7

Browse files
committed
Infrastructure: make docker-fmt for invoking black
1 parent 78fe140 commit a2f38f7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ docker-qa-build: Dockerfile.qa requirements.txt requirements-dev.txt
5050
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
5151
--file $< .
5252

53+
docker-fmt: docker-qa-build
54+
docker run --rm -v `pwd`:/atlassian-python-api $(QA_CONTAINER) tox -e black_fmt
55+
5356
docker-atlassian-standalone: Dockerfile.standalone
5457
docker build \
5558
--tag $(ATLASSIAN_SDK) \

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ skip_install = true
4040
deps = black
4141
commands = black --check --diff {[base]linting_targets} --exclude __pycache__
4242

43+
[testenv:black_fmt]
44+
basepython = python3
45+
target-version = ["py37"]
46+
skip_install = true
47+
deps = black
48+
commands = black {[base]linting_targets} --exclude __pycache__
49+
4350
[testenv:mypy]
4451
basepython = python3
4552
skip_install = true

0 commit comments

Comments
 (0)