Skip to content

Commit 1c4b24b

Browse files
committed
Sync project setup with Apify SDK
1 parent 3c135ef commit 1c4b24b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

docs/res/format_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
subs.append((fr'`({custom_type})\.([A-Z_]+)`', lambda match: f'[{match.group(0)}](#{match.group(1).lower()}-{match.group(2).lower()})'))
3636

3737
# Load the api_reference.md generated by Sphinx
38-
with open('api_reference.md', 'r+') as api_reference:
38+
with open('api_reference.md', 'r+', encoding='utf-8') as api_reference:
3939
api_reference_content = api_reference.read()
4040

4141
# Do the above defined replacements

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dev = [
3636
"flake8-comprehensions ~= 3.12.0",
3737
"flake8-datetimez ~= 20.10.0",
3838
"flake8-docstrings ~= 1.7.0",
39+
"flake8-encodings ~= 0.5.0",
3940
"flake8-isort ~= 6.0.0",
4041
"flake8-noqa ~= 1.3.1",
4142
"flake8-pytest-style ~= 1.7.2",

scripts/check_async_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Go through every Python file in that directory
1414
for client_source_path in clients_path.glob('**/*.py'):
15-
with open(client_source_path, 'r') as source_file:
15+
with open(client_source_path, 'r', encoding='utf-8') as source_file:
1616
# Read the source file and parse the code using Red Baron
1717
red = RedBaron(source_code=source_file.read())
1818

scripts/fix_async_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Go through every Python file in that directory
1111
for client_source_path in clients_path.glob('**/*.py'):
12-
with open(client_source_path, 'r+') as source_file:
12+
with open(client_source_path, 'r+', encoding='utf-8') as source_file:
1313
# Read the source file and parse the code using Red Baron
1414
red = RedBaron(source_code=source_file.read())
1515

0 commit comments

Comments
 (0)