From 9e0b4fd2432dea28786263d4c6e4354bfdf23d8f Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Wed, 11 Oct 2023 16:22:45 +0200 Subject: [PATCH] ci: Fix missing package for pdoc, fix requirements and pep8. --- .gitlab-ci.yml | 4 ++++ requirements.txt | 1 + src/View/Tools/PamhyrPythonEditor.py | 1 + 3 files changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ba8ce13..2a1cdb21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,6 +113,10 @@ build-developers-doc: - ./build.sh # Create html documentation - cd ../../src + - python3 -m venv doc-venv + - . doc-venv/bin/activate + - pip3 install -U -r ../requirements.txt + - pip3 install -U pdoc3 - pdoc --html . # Create archive - tar cf html.tar ./html diff --git a/requirements.txt b/requirements.txt index 2f9bcc4a..6c710e21 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ PyQt5==5.15.4 PyQt5-Qt5==5.15.2 PyQt5-sip==12.12.2 #PyQtWebEngine==5.15.6 +QsciScintilla==2.14.1 pyqtgraph>=0.12.1 matplotlib>=3.4.1 numpy>=1.24.2 diff --git a/src/View/Tools/PamhyrPythonEditor.py b/src/View/Tools/PamhyrPythonEditor.py index b162bb9c..2cc1680c 100644 --- a/src/View/Tools/PamhyrPythonEditor.py +++ b/src/View/Tools/PamhyrPythonEditor.py @@ -23,6 +23,7 @@ from PyQt5.Qsci import QsciScintilla, QsciLexerPython logger = logging.getLogger() + class PamhyrPythonEditor(QsciScintilla): def __init__(self, parent=None): super(PamhyrPythonEditor, self).__init__(parent) -- GitLab