-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation, error handling and code improvements for usability (#42)
* add to docs * more docs updates * add pycharm files to gitignore * error handling and openapi validation CSVConvert will exit if it encounters a fatal error from its inputs OpenAPI schema is validated using openapi-spec-validator * remove extra excepts * improve error reporting in validate_coverage * correct lines in test2moh and moh_template * tiny typo fix * improve error handling csvconvert * improve readability of README * format manifest info as table * add manifest link * doc additions and reorg * fix link * add links, fix typos * read template with csv reader Use proper csv reader to allow for quoted csvs to be read correctly * add docstrings and documentation * update templates * add pydoc * reverse float method change * mappings docstrings * add lazydocs * add functions index * change to first level heading * add automated docs note * add data_values dict info * switch to pdoc3 * minor changes * remove unused args and imports * revert method in test csv * updates based on PR review, thanks @daisieh
- Loading branch information
Showing
16 changed files
with
846 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ __pycache__/* | |
.DS_Store | ||
*.pyc | ||
.venv/ | ||
_local | ||
.idea | ||
.~lock* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import subprocess | ||
|
||
|
||
def main(): | ||
docs = subprocess.check_output(["pdoc", "mappings"]) | ||
print(docs.decode()) | ||
with open("mapping_functions.md", "r") as f: | ||
mapping_functions_lines = f.readlines() | ||
|
||
updated_mapping_functions = [] | ||
for line in mapping_functions_lines: | ||
if line.startswith("# Standard Functions Index"): | ||
break | ||
else: | ||
updated_mapping_functions.append(line) | ||
updated_mapping_functions.append("# Standard Functions Index\n") | ||
updated_mapping_functions.append( | ||
"\n<!--- documentation below this line is generated automatically by running generate_mapping_docs.py --->\n\n") | ||
updated_mapping_functions.append(docs.decode()) | ||
with open("mapping_functions.md", "w+") as f: | ||
f.writelines(updated_mapping_functions) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.