Skip to content

Commit

Permalink
Exclude persistence snapshots from black formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Feb 20, 2024
1 parent 5dba80f commit f02ff4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robot-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ tests ?= tests
cov_opts ?= --cov=$(SRC_PATH) --cov-report term-missing:skip-covered --cov-report xml:coverage.xml
test_opts ?=

black_opts := --extend-exclude tests/integration/persistence_snapshots/

# Host key location for robot
ssh_key ?= $(default_ssh_key)
# Pubkey location for robot to install with install-key
Expand Down Expand Up @@ -122,12 +124,12 @@ test-cov:
.PHONY: lint
lint:
$(python) -m mypy $(SRC_PATH) $(tests)
$(python) -m black --check .
$(python) -m black $(black_opts) --check .
$(python) -m flake8 $(SRC_PATH) $(tests) setup.py

.PHONY: format
format:
$(python) -m black .
$(python) -m black $(black_opts) .

.PHONY: _dev
_dev:
Expand Down

0 comments on commit f02ff4e

Please sign in to comment.