Bonifatius94 / ChessLib.Py

C-lib Python3 extension for efficient chess draw-gen
MIT License
2 stars 0 forks source link

Make the chesslib lintable when being imported in Python projects #22

Closed Bonifatius94 closed 3 years ago

Bonifatius94 commented 3 years ago

Issue:

Suggested Solution:

Bonifatius94 commented 3 years ago

use this example: https://stackoverflow.com/questions/3898572/what-is-the-standard-python-docstring-format

Bonifatius94 commented 3 years ago

Task Roadmap:

1) added Sphynx-like syntax to a function (for testing) 2) trying to export this doc strings to a HTML documentation 3) making sure that IDEs show the docstring correctly, so the user sees help text when typing in the function name, etc. 4) add API doc to all module functions (do this last to save rewriting effort)

Bonifatius94 commented 3 years ago

following steps had to be taken to install the chesslib package as is (without requiring to do PyPI build pipeline stuff):

# make sure to clear already installed versions of chesslib
pip3 uninstall chesslib

# build and install chesslib from source code
python3 setup.py install --user
Bonifatius94 commented 3 years ago

try following tutorial for API doc generation https://shunsvineyard.info/2019/09/19/use-sphinx-for-python-documentation/

Bonifatius94 commented 3 years ago