#36162: Docs make black doesn't work on MacOS
----------------------------------------+------------------------------
Reporter: Mike Edmunds | Owner: Mike Edmunds
Type: Bug | Status: assigned
Component: Packaging | Version: 5.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------------
The docs `make black` target doesn't work on MacOS (and presumably other
BSD) due to differences in the find command. This complicates checking
docs locally (or in general investigating issues with blacken-docs).
{{{#!shell
% (cd docs; make black)
find -name "*.txt" -not -path "./_build/*" -not -path "./_theme/*" \
| xargs blacken-docs --rst-literal-block; echo $? >
"_build/black/output.txt"
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
% uname -a
Darwin --- 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:40:14 PST
2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8103 arm64
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/36162>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.