Skip to content

Commit 1be0521

Browse files
committed
test CI
1 parent 436f2f4 commit 1be0521

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

pcweb/whitelist.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
# A list of whitelist paths that should be built.
2-
# If the list is empty, all pages will be built.
1+
"""A list of whitelist paths that should be built.
2+
If the list is empty, all pages will be built.
33
4-
# Tips:
5-
# - Ensure that the path starts with a forward slash '/'.
6-
# - Do not include a trailing slash '/' at the end of the path.
4+
Tips:
5+
- Ensure that the path starts with a forward slash '/'.
6+
- Do not include a trailing slash '/' at the end of the path.
77
8-
# Examples:
9-
# - Correct: WHITELISTED_PAGES = ["/docs/getting-started/introduction"]
10-
# - Incorrect: WHITELISTED_PAGES = ["/docs/getting-started/introduction/"]
8+
Examples:
9+
- Correct: WHITELISTED_PAGES = ["/docs/getting-started/introduction"]
10+
- Incorrect: WHITELISTED_PAGES = ["/docs/getting-started/introduction/"]
11+
"""
1112

12-
WHITELISTED_PAGES = []
13+
WHITELISTED_PAGES = []
1314

14-
15-
def _check_whitelisted_path(path):
15+
16+
def _check_whitelisted_path(path: str):
1617
if len(WHITELISTED_PAGES) == 0:
1718
return True
1819

0 commit comments

Comments
 (0)