Skip to content

nuwe-reports/python-algorithmia

Repository files navigation


    Python Algorithmia

Relevant Info

• coverage: is a tool that helps measure the amount of code that is executed during tests.
• logzero: is a library that provides an interface for zero-level logging, like syslog and eventlog.
• pycodestyle: is a tool that helps detect style issues in Python code, based on the rules of PEP 8.
• pyflakes: is a linting tool for Python that detects errors in code, such as unused variables or missing imports.
• pylint: is a linting tool for Python that detects style issues and errors in code. It also provides a code quality rating.
• flake8: is a linting tool for Python that combines the functionality of pyflakes, pycodestyle and McCabe.
• python-coveralls: is a tool that helps upload code coverage information to the coveralls.io platform, allowing for visualization of statistics and code coverage graphs.

How to use

  1. pip install -r requirements.txt

  2. python src/hello.py

  3. python -m unittest tests/test_hello.py

Examples

$ make
Some available commands:
 * run          - Run code.
 * test         - Run unit tests and test coverage.
 * doc          - Document code (pydoc).
 * clean        - Cleanup (e.g. pyc files).
 * code-style   - Check code style (pycodestyle).
 * code-lint    - Check code lints (pyflakes, pyline).
 * code-count   - Count code lines (cloc).
 * deps-install - Install dependencies (see requirements.txt).
 * deps-update  - Update dependencies (via pur).
$ make test
[D 180728 04:10:10 hello:23] <function print_message at 0x107867aa0>
Hello world!
[I 180728 04:10:10 hello:47] []
.
----------------------------------------------------------------------
Ran 1 test in 0.001s

OK
Name                  Stmts   Miss  Cover
-----------------------------------------
src/__init__.py           0      0   100%
src/hello.py             26      0   100%
tests/__init__.py         0      0   100%
tests/test_hello.py      12      0   100%
-----------------------------------------
TOTAL                    38      0   100%

License

This project is licensed with the MIT license.

Made with ❤️ by Nuwe

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors