From bd7906b8fcecd8924f4d58e91b550fe52b1efa70 Mon Sep 17 00:00:00 2001 From: Nicholas Karlson Date: Sun, 9 Nov 2025 16:18:44 -0800 Subject: [PATCH] chore(dev): add ruff/black/pytest and make targets (lint/format/test) --- Makefile | 10 +++++++++- requirements-dev.txt | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 requirements-dev.txt diff --git a/Makefile b/Makefile index b9b25fe..e9e663d 100644 --- a/Makefile +++ b/Makefile @@ -19,4 +19,12 @@ ch13: python scripts/sim_stroop.py python scripts/ch13_stroop_within.py --save-plots python scripts/sim_fitness_2x2.py - python scripts/ch13_fitness_mixed.py --save-plots \ No newline at end of file + python scripts/ch13_fitness_mixed.py --save-plots + +.PHONY: lint format test +lint: + ruff check . +format: + black . +test: + pytest -q || true diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..63baba7 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,3 @@ +ruff>=0.6 +black>=24.8 +pytest>=8.3