Skip to content

Commit f3dd88b

Browse files
authored
chore(docs): fixed readthedocs build (#50)
1 parent 6048175 commit f3dd88b

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# x86 builds are only meaningful for Windows
2323
- os: windows-latest
2424
architecture: x86
25-
- os: macos-latest
25+
- os: macos-12
2626
architecture: x64
2727
major:
2828
- 3

.readthedocs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the OS, Python version and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.8"
13+
14+
# Build documentation in the doc/ directory with Sphinx
15+
sphinx:
16+
configuration: doc/conf.py
17+
18+
# Don't need to build documentation for test vectors or any other
19+
# sub modules
20+
submodules:
21+
exclude: all
22+
23+
python:
24+
install:
25+
- requirements: doc/requirements.txt
26+
- method: pip
27+
path: .

src/base64io/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ def _passthrough_interactive_check(self, method_name, mode):
154154
except AttributeError:
155155
if (
156156
_py2()
157-
and isinstance(self.__wrapped, file) # pylint: disable=isinstance-second-argument-not-valid-type
157+
# pylint: disable=isinstance-second-argument-not-valid-type, possibly-used-before-assignment
158+
and isinstance(self.__wrapped, file)
158159
and mode in self.__wrapped.mode
159160
):
160161
return True

0 commit comments

Comments
 (0)