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.
Files changed (25) hide show
  1. {markdown-checker-0.1.1/markdown_checker.egg-info → markdown-checker-0.1.3}/PKG-INFO +1 -1
  2. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/generators/md_generator.py +7 -7
  3. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/links/link_operations.py +3 -1
  4. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/validate_markdown.py +0 -2
  5. {markdown-checker-0.1.1 → markdown-checker-0.1.3/markdown_checker.egg-info}/PKG-INFO +1 -1
  6. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/setup.cfg +1 -1
  7. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/LICENSE +0 -0
  8. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/MANIFEST.in +0 -0
  9. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/README.md +0 -0
  10. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/__init__.py +0 -0
  11. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/check_markdown.py +0 -0
  12. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/generators/__init__.py +0 -0
  13. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/inputs/__init__.py +0 -0
  14. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/inputs/input_arguments.py +0 -0
  15. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/links/__init__.py +0 -0
  16. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/paths/__init__.py +0 -0
  17. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker/paths/files_paths_reader.py +0 -0
  18. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/SOURCES.txt +0 -0
  19. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/dependency_links.txt +0 -0
  20. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/entry_points.txt +0 -0
  21. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/requires.txt +0 -0
  22. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/markdown_checker.egg-info/top_level.txt +0 -0
  23. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/pyproject.toml +0 -0
  24. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/setup.py +0 -0
  25. {markdown-checker-0.1.1 → markdown-checker-0.1.3}/tests/test_markdown_checker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: markdown-checker
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A markdown validation reporting tool
5
5
  Home-page: https://github.com/john0isaac/markdown-checker
6
6
  Author: John Aziz
@@ -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 lessons. Review and fix the paths to resolve this issue.
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 URLS
6
+ CHECK_BROKEN_URLS = """# Check Broken URLs
7
7
 
8
- We have automatically detected the following broken URLS in your lessons. Review and fix the paths to resolve this issue.
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 urls inside them."""
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 id from the following relative paths in your lessons. Review and add tracking to paths to resolve this issue.
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 id from the following URLs in your lessons. Review and add tracking to URLs to resolve this issue.
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 lessons. Review and remove country specific locale from URLs to resolve this issue.
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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: markdown-checker
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A markdown validation reporting tool
5
5
  Home-page: https://github.com/john0isaac/markdown-checker
6
6
  Author: John Aziz
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = markdown-checker
3
- version = 0.1.1
3
+ version = 0.1.3
4
4
  author = John Aziz
5
5
  author_email = johnaziz269@gmail.com
6
6
  maintainer = John Aziz