Skip to content

Commit

Permalink
Infrastructure: make docker-fmt for invoking black (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baarsgaard authored Oct 4, 2024
1 parent 78fe140 commit 7356980
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ docker-qa-build: Dockerfile.qa requirements.txt requirements-dev.txt
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
--file $< .

docker-fmt: docker-qa-build
docker run --rm -v `pwd`:/atlassian-python-api $(QA_CONTAINER) tox -e black_fmt

docker-atlassian-standalone: Dockerfile.standalone
docker build \
--tag $(ATLASSIAN_SDK) \
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ skip_install = true
deps = black
commands = black --check --diff {[base]linting_targets} --exclude __pycache__

[testenv:black_fmt]
basepython = python3
target-version = ["py37"]
skip_install = true
deps = black
commands = black {[base]linting_targets} --exclude __pycache__

[testenv:mypy]
basepython = python3
skip_install = true
Expand Down

0 comments on commit 7356980

Please sign in to comment.