You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/users/TrisNol/packages/container/package/sample-python-repo)
This repo contains a skeleton for Python projects containing some basic DevOps´ components like CI/CD pipelines.
6
+
7
+
## Linting
8
+
The code of this repo will be linted with [PyLint](https://pylint.org/) automatically on each push and pull-request to ensure that the files are correctly formatted in order to improve readability.
9
+
10
+
## Tests
11
+
You can add your tests in the test/ directory. By providing the prefix test_ the files will be recognized and executed by PyTest.
12
+
13
+
## Documentation
14
+
The documentation is created with the help of [Sphinx](https://www.sphinx-doc.org/en/master/), which generates a html-based docu that is exposed via GitHub pages. In order to see the documentation, some configuration in GitHub needs to be done. Head to the repo´s settings and enable GitHub pages. Set the source to branch `gh-pages`. The documentation should now be hosted at `http[s]:<username>.github.io/<repo-name>`
15
+
16
+
In order to adapt the config, change the specifics in ```./docs/conf.py```.
17
+
To manually build the documentation execute the following command - and install sphinx if you haven´t already - ```sphinx-build ./docs ./docs/_build```.
18
+
However, the documentation will be built automatically on each push and added to the repo by a GitHub Action - so you don´t have to generate it yourself each time.
0 commit comments