Markdown-Checker 0.1.1__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown-checker-0.1.1/markdown_checker.egg-info → markdown-checker-0.1.3}/PKG-INFO +1 -1
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/generators/md_generator.py +7 -7
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/links/link_operations.py +3 -1
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/validate_markdown.py +0 -2
- {markdown-checker-0.1.1 → markdown-checker-0.1.3/markdown_checker.egg-info}/PKG-INFO +1 -1
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/setup.cfg +1 -1
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/LICENSE +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/MANIFEST.in +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/README.md +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/__init__.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/check_markdown.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/generators/__init__.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/inputs/__init__.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/inputs/input_arguments.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/links/__init__.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/paths/__init__.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/paths/files_paths_reader.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/SOURCES.txt +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/dependency_links.txt +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/entry_points.txt +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/requires.txt +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/top_level.txt +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/pyproject.toml +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/setup.py +0 -0
- {markdown-checker-0.1.1 → markdown-checker-0.1.3}/tests/test_markdown_checker.py +0 -0
{markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/generators/md_generator.py
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
CHECK_BROKEN_PATHS = """# Check Broken Paths
|
|
2
2
|
|
|
3
|
-
We have automatically detected the following broken relative paths in your
|
|
3
|
+
We have automatically detected the following broken relative paths in your files. Review and fix the paths to resolve this issue.
|
|
4
4
|
|
|
5
5
|
Check the file paths and associated broken paths inside them."""
|
|
6
|
-
CHECK_BROKEN_URLS = """# Check Broken
|
|
6
|
+
CHECK_BROKEN_URLS = """# Check Broken URLs
|
|
7
7
|
|
|
8
|
-
We have automatically detected the following broken
|
|
8
|
+
We have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue.
|
|
9
9
|
|
|
10
|
-
Check the file paths and associated broken
|
|
10
|
+
Check the file paths and associated broken URLs inside them."""
|
|
11
11
|
CHECK_PATHS_TRACKING = """# Check Missing Tracking from Paths
|
|
12
12
|
|
|
13
|
-
We have automatically detected missing tracking
|
|
13
|
+
We have automatically detected missing tracking IDs from the following relative paths in your files. Review and add tracking to paths to resolve this issue.
|
|
14
14
|
|
|
15
15
|
Check the file paths and associated paths inside them."""
|
|
16
16
|
CHECK_URLS_TRACKING = """# Check Missing Tracking from URLs
|
|
17
17
|
|
|
18
|
-
We have automatically detected missing tracking
|
|
18
|
+
We have automatically detected missing tracking IDs from the following URLs in your files. Review and add tracking to URLs to resolve this issue.
|
|
19
19
|
|
|
20
20
|
Check the file paths and associated URLs inside them."""
|
|
21
21
|
CHECK_URLS_LOCALE = """# Check Country Locale in URLs
|
|
22
22
|
|
|
23
|
-
We have automatically detected added country locale to URLs in your
|
|
23
|
+
We have automatically detected added country locale to URLs in your files. Review and remove country-specific locale from URLs to resolve this issue.
|
|
24
24
|
|
|
25
25
|
Check the file paths and associated URLs inside them."""
|
|
26
26
|
|
|
@@ -49,7 +49,7 @@ def get_paths_from_links(all_links: list) -> list:
|
|
|
49
49
|
link = link.split(" ")[0]
|
|
50
50
|
matches = re.findall(path_pattern, link)
|
|
51
51
|
if matches:
|
|
52
|
-
paths.append(link)
|
|
52
|
+
paths.append(link.split("#")[0])
|
|
53
53
|
return paths
|
|
54
54
|
|
|
55
55
|
|
|
@@ -103,6 +103,8 @@ def check_url_alive(urls: list) -> list:
|
|
|
103
103
|
|
|
104
104
|
broken_urls = []
|
|
105
105
|
for url in urls:
|
|
106
|
+
if "https://vscode.dev/redirect?url=" in url:
|
|
107
|
+
continue
|
|
106
108
|
try:
|
|
107
109
|
response = requests.get(url, timeout=10)
|
|
108
110
|
if response.status_code != 200:
|
|
@@ -20,10 +20,8 @@ def main() -> None:
|
|
|
20
20
|
|
|
21
21
|
pass_list = [
|
|
22
22
|
"./CODE_OF_CONDUCT.md",
|
|
23
|
-
"./CONTRIBUTING.md",
|
|
24
23
|
"./SECURITY.md",
|
|
25
24
|
".\CODE_OF_CONDUCT.md",
|
|
26
|
-
".\CONTRIBUTING.md",
|
|
27
25
|
".\SECURITY.md",
|
|
28
26
|
]
|
|
29
27
|
files_paths = [file_path for file_path in files_paths if file_path not in pass_list]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/inputs/input_arguments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/paths/files_paths_reader.py
RENAMED
|
File without changes
|
|
File without changes
|
{markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|