All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
754eecf)
There's some weird interaction between Click and
sphinxcontrib-programoutput on Windows that leads to an encoding error
during the printing of black-primer's help text.
Also symlinks aren't well supported on Windows so let's just use
includes which actually work because we now use MyST :D
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
steps:
- uses: actions/checkout@v2
- - name: Set up Python 3.9
+ - name: Set up latest Python
uses: actions/setup-python@v2
uses: actions/setup-python@v2
- with:
- python-version: 3.9
- name: Install dependencies
run: |
- name: Install dependencies
run: |
- Fix typos discovered by codespell (#2228)
- Fix Vim plugin installation instructions. (#2235)
- Add new Frequently Asked Questions page (#2247)
- Fix typos discovered by codespell (#2228)
- Fix Vim plugin installation instructions. (#2235)
- Add new Frequently Asked Questions page (#2247)
+- Fix encoding + symlink issues preventing proper build on Windows (#2262)
+++ /dev/null
-../AUTHORS.md
\ No newline at end of file
--- /dev/null
+```{include} ../AUTHORS.md
+
+```
+++ /dev/null
-../CHANGES.md
\ No newline at end of file
--- /dev/null
+```{include} ../CHANGES.md
+
+```
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
-from pathlib import Path
+from pathlib import Path
from pkg_resources import get_distribution
from pkg_resources import get_distribution
+# Necessary so Click doesn't hit an encode error when called by
+# sphinxcontrib-programoutput on Windows.
+os.putenv("pythonioencoding", "utf-8")
+
# -- Project information -----------------------------------------------------
project = "Black"
# -- Project information -----------------------------------------------------
project = "Black"