Skip to content

narn01101110/APE-1

 
 

Repository files navigation

APE_GUI

QA Dependencies

Install the QA dependencies:

pip install pre-commit black flake8 pytest-qt

Coding style

Pre-Commit

The Docker container comes with pre-commit installed. pre-commit is a pre-commit framework which can be attached as git hook. It runs code-formatting and other checks automatically before committing any code. You just need to install with:

pre-commit install
pre-commit autoupdate

Python

For Python we can use black:

black -S .

NOTE: The -S parameter prevents black from changing quotes.

Docker dev environment and CI

The install_scripts directory contains a Docker configuration as well as helper scripts to set up a Docker-based development and CI environment.

The Docker setup is meant to be built on Linux or with the Windows Subsystem for Linux. The Windows Subsystem for Linux setup has following requirements:

The image can be built and run using the docker-dev.sh script.

Image build

Build a new development/CI image.

./install_scripts/docker-dev.sh -b

Development environment

Automatically pulls a new image if necessary.

./install_scripts/docker-dev.sh

Push image to Docker Hub

Pushes the image to Docker-Hub.

./install_scripts/docker-dev.sh -p

Bump image version

The script generates a hash which identifies the Docker image. This features is used to synchronise Docker images with git repo versions. To generate a new hash (if necessary) run following command:

./install_scripts/docker-dev.sh -B

Live Coding

Live-coding speeds up development of Qt/QML applications.

Before using live-coding you need to install the python-qt-live-coding package from PyPi.

pip install python-qt-live-coding

The GUI can be started in live-coding mode using following commands:

python gui.py --live

About

Generalized automation and data ontology framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.8%
  • QML 7.2%
  • Shell 2.5%
  • Other 0.5%