Commit graph

12 commits

Author SHA1 Message Date
Richard Bowman
5404521458 Use different names for unused variables
mypy flagged too many assignments to `_` which this commit fixes.
2022-08-09 09:36:25 +01:00
Richard Bowman
a9fff24848 Explicitly specify encoding
The update to pylint means we were failing because open()
doesn't specify the encoding everywhere.  I have now specified utf-8
everywhere.  This was patchy before, and is default behaviour on the
Pi.  There's a slim chance it will cause some issues on Windows, but
that shouldn't affect anyone outside the developers.

I've also ignored a couple of new spurious warnings, and explicitly
ignored some unused variables.
2022-08-09 07:16:44 +01:00
Joel Collins
61554af270 Restructured camera rescue 2021-01-06 17:31:45 +00:00
Kaspar Emanuel
805b9012dd Make linter happy 2020-12-02 10:57:07 +00:00
Kaspar Emanuel
cc73aec257 Detect picamera in use error 2020-12-02 10:46:23 +00:00
Kaspar Emanuel
cc1c5e77c3 Format check_picamera.py with black 2020-12-02 10:46:23 +00:00
Kaspar Emanuel
fbd3b349df Detect camera not enabled picamerax error 2020-12-02 10:46:21 +00:00
Joel Collins
cd61ad3b21 Formatting and linting 2020-11-06 16:25:56 +00:00
Joel Collins
de135abc95 Style and linting 2020-11-06 15:53:25 +00:00
Joel Collins
0989a50558 Added stage tests and tidied up rescue 2020-11-06 15:34:34 +00:00
Joel Collins
70437212b1 Added classes for error sources 2020-11-06 12:19:41 +00:00
Joel Collins
013aebd97a Added picamera import checker 2020-11-06 10:36:31 +00:00