You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace some subprocess.run() calls with subprocess.check_output()
wpiformat calls "git diff --name-only master" in a subprocess to get a
list of files which have been modified from master. In GitHub Actions,
there is no master branch by default. When wpiformat is run in GitHub
Actions, this causes the git subprocess to fail. subprocess.run()
doesn't check the return code, so wpiformat was reporting success when
the program had actually failed with an error.
subprocess.check_output() does check the return code by default. A
return code check was also added to "git check-ignore".
Copy file name to clipboardExpand all lines: wpiformat/README.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Provides linters and formatters for ensuring WPILib's C++, Java, and Python code
6
6
Dependencies
7
7
************
8
8
9
-
- `Python 3.5 or newer <https://www.python.org/downloads/>`_
9
+
- `Python 3.6 or newer <https://www.python.org/downloads/>`_
10
10
- clang-format (included with `LLVM <http://llvm.org/releases/download.html>`_)
11
11
12
12
To obtain newer versions of clang-format on older Debian and Ubuntu releases, either upgrade to one that does or add the appropriate ``deb ... main`` line from `apt.llvm.org <http://apt.llvm.org/>`_ to ``/etc/apt/sources.list``. Then install ``clang-format-#`` where ``#`` is the version number.
0 commit comments