RASCSI/python
Daniel Markstedt d3317e9702
Bump stylelint to 15.10.2 and remove deprecated module (#1189)
- Bump stylelint and stylelint-config-standard libs to the latest versions (security fixes)
- Remove deprecated stylelint-config-prettier module
- Scan the classic style sheet with stylelint and prettier in the github workflow
- Address stylelint and prettier issues in the classic stylesheet
- Bump prettier to 3.0.0
2023-07-28 22:53:12 -07:00
..
common Bump requests from 2.26.0 to 2.31.0 in /python/common (#1176) 2023-05-24 22:15:56 -07:00
ctrlboard Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
oled PiSCSI name in OLED splash screen (#1169) 2023-05-16 23:09:12 -05:00
web Bump stylelint to 15.10.2 and remove deprecated module (#1189) 2023-07-28 22:53:12 -07:00
__init__.py
.flake8 Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
.pylintrc Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
pyproject.toml
README.md Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00

PiSCSI Python Apps

This directory contains Python-based clients for PiSCSI as well as common packages that are shared among the clients.

The following paragraphs in this README contain instructions that are shared among all Python apps.

Supported Python interpreter

The policy in this project is to support the Python 3 interpreter that comes standard with the current stable, as well as previous stable release of Debian.

At the time of writing they are:

Static analysis with pylint

It is recommended to run pylint against new code to protect against bugs and keep the code readable and maintainable. The local pylint configuration lives in .pylintrc. In order for pylint to recognize venv libraries, the pylint-venv package is required.

sudo apt install pylint3
sudo pip install pylint-venv
source venv/bin/activate
pylint3 python_source_file.py

Examples:

# check a single file
pylint web/src/web.py

# check the python modules
pylint common/src
pylint web/src
pylint oled/src