Repository: bancaditalia/black-it (language: python)

Issue:
tests: improve the signal/noise ratio of the test logs by 63%
Before this change, the logs of the tests were littered with messages from Pillow:
```
2024-09-10 18:04:55 [   DEBUG] STREAM b'IHDR' 16 13 (PngImagePlugin.py:197)
2024-09-10 18:04:55 [   DEBUG] STREAM b'sBIT' 41 4 (PngImagePlugin.py:197)
2024-09-10 18:04:55 [   DEBUG] b'sBIT' 41 4 (unknown) (PngImagePlugin.py:753)
2024-09-10 18:04:55 [   DEBUG] STREAM b'pHYs' 57 9 (PngImagePlugin.py:197)
```

After this change, on my machine, the size of the log produced by running "make test" goes from 1405 to 513 lines, a **63% reduction**, that hopefully increases the signal noise ratio of the test logs.

This PR should be merged after #84.



Discussion / hints:

Fix patch:
diff --git a/Makefile b/Makefile
index c7006698..7aeb59fe 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ darglint-files: ## run darglint for specific files (specified with files="file1
 test: ## run tests quickly with the default Python
 	pytest                              \
 		tests/                          \
-		--doctest-modules black_it      \
+		black_it                        \
 		--cov=black_it                  \
 		--cov-report=xml                \
 		--cov-report=html               \
diff --git a/tox.ini b/tox.ini
index 0a982d4f..d09864d2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,7 +21,7 @@ deps =
     mistletoe==1.2.1
 
 commands =
-    pytest --basetemp={envtmpdir} --doctest-modules \
+    pytest --basetemp={envtmpdir} \
         black_it tests/ \
         --cov=black_it \
         --ignore=example/models \


Test patch:
diff --git a/pytest.ini b/pytest.ini
index be5c67a1..6fe47718 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -6,3 +6,5 @@ log_cli_date_format=%Y-%m-%d %H:%M:%S
 
 markers =
     e2e: marks end-to-end tests which involve several library components.
+
+addopts = --doctest-modules