From f02ff4e79bb4ada46fa3551e80583f8afdc3a4a0 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Tue, 20 Feb 2024 16:43:43 -0500 Subject: [PATCH] Exclude persistence snapshots from black formatting. --- robot-server/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/robot-server/Makefile b/robot-server/Makefile index 1e287181094..b00e0647ce1 100755 --- a/robot-server/Makefile +++ b/robot-server/Makefile @@ -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 @@ -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: