ALX test Suite. Shell Utility that checks for ALX Project Requirements
alxcheck checks for the following:
README.mdfile present.README.mdfile is not empty.- All files in the current folder and sub-folders end with a new line.
- runs
bettycheck.Note: You would have to make sure betty is installed. Check out How To Install Betty
- Python file is executable.
- shebang is present and at the top of the file (
#!/usr/bin/python3or#!/usr/bin/env python3) - Module documentation (docstrings)
- Function documentation (docstrings)
- Class documentation (docstrings)
- Parse and check for syntax error.
- Javascript file is executable
Note: enabled with
-jsor--nodejs-projectcommand line switch. See Usage below - shebang is present and at the top of the file (
#!/usr/bin/nodeor#!/usr/bin/env node)Note: enabled with
-jsor--nodejs-projectcommand line switch. See Usage below semistandardcheckNote: you would have to install semistandard
npm install semistandard -gvaris not used.
pip install alxcheckor
python3 -m pip install alxcheckAfter installation, to use this package, just run it as a shell command. This starts the checks with the current working directory as the root of the project.
alxcheckIf the project is a JavaScript project with node.js scripts, a command line switch can be used to enable the first two checks listed above.
alxcheck -js #shorthand versionor
alxcheck --nodejs-project #long versionFeel free to contribute to the project by opening issues or submitting pull requests. Your feedback is valuable!
This project is licensed under the MIT License.