Skip to content

Commit

Permalink
Sync project setup with Apify SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
fnesveda committed May 23, 2023
1 parent 3c135ef commit 1c4b24b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/res/format_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
subs.append((fr'`({custom_type})\.([A-Z_]+)`', lambda match: f'[{match.group(0)}](#{match.group(1).lower()}-{match.group(2).lower()})'))

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

# Do the above defined replacements
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dev = [
"flake8-comprehensions ~= 3.12.0",
"flake8-datetimez ~= 20.10.0",
"flake8-docstrings ~= 1.7.0",
"flake8-encodings ~= 0.5.0",
"flake8-isort ~= 6.0.0",
"flake8-noqa ~= 1.3.1",
"flake8-pytest-style ~= 1.7.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_async_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

Expand Down
2 changes: 1 addition & 1 deletion scripts/fix_async_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

Expand Down

0 comments on commit 1c4b24b

Please sign in to comment.