Skip to content

Commit 4bebd7a

Browse files
hyounes4560tdruez
andauthored
Add UI tutorial 241 (#254)
* Add UI tutorial * Adding a complementary output section to the new UI chapter * Updating to the custom pipeline file * Adding minor updates to CL tutorials * Adding Minor updates to built-in pipelines sections * Adding some images Signed-off-by: Hanan Younes <hyounes4560@conestogac.on.ca> * Remove trailing whitespace #241 * Rename documentation images for consistency #241 * Add changelog entry #241 * Update UI tutorial * Add updated screenshots * Add a Deleting project section to the user interface chapter with screenshots * Add minor updates to the UI tutorials * Add a note about renaming a project Signed-off-by: Hanan Younes <hyounes4560@conestogac.on.ca> Co-authored-by: Thomas Druez <tdruez@nexb.com>
1 parent b8eeaaf commit 4bebd7a

31 files changed

+228
-31
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
### unreleased
55

6+
- Add new documentation chapters and tutorials on the usage of the Web User Interface.
7+
https://github.com/nexB/scancode.io/issues/241
8+
69
- Add ability to register custom pipelines through a new SCANCODEIO_PIPELINES_DIRS
710
setting.
811
https://github.com/nexB/scancode.io/issues/237

Makefile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PYTHON_EXE?=python3
2525
MANAGE=bin/python manage.py
2626
ACTIVATE?=. bin/activate;
2727
VIRTUALENV_PYZ=etc/thirdparty/virtualenv.pyz
28-
BLACK_ARGS=--exclude="migrations|data|docs" .
28+
BLACK_ARGS=--exclude="migrations|data" .
2929
# Do not depend on Python to generate the SECRET_KEY
3030
GET_SECRET_KEY=`base64 /dev/urandom | head -c50`
3131
# Customize with `$ make envfile ENV_FILE=/etc/scancodeio/.env`
@@ -59,16 +59,6 @@ envfile:
5959
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
6060
@echo SECRET_KEY=\"${GET_SECRET_KEY}\" > ${ENV_FILE}
6161

62-
check:
63-
@echo "-> Run pycodestyle (PEP8) validation"
64-
@${ACTIVATE} pycodestyle --max-line-length=88 --exclude=lib,thirdparty,docs,bin,migrations,settings,data,pipelines,var .
65-
@echo "-> Run isort imports ordering validation"
66-
@${ACTIVATE} isort --check-only .
67-
@echo "-> Run black validation"
68-
@${ACTIVATE} black --check ${BLACK_ARGS}
69-
@echo "-> Run doc8 validation"
70-
@${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
71-
7262
isort:
7363
@echo "-> Apply isort changes to ensure proper imports ordering"
7464
bin/isort .
@@ -77,7 +67,19 @@ black:
7767
@echo "-> Apply black code formatter"
7868
bin/black ${BLACK_ARGS}
7969

80-
valid: isort black
70+
doc8:
71+
@echo "-> Run doc8 validation"
72+
@${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
73+
74+
valid: isort black doc8
75+
76+
check: doc8
77+
@echo "-> Run pycodestyle (PEP8) validation"
78+
@${ACTIVATE} pycodestyle --max-line-length=88 --exclude=lib,thirdparty,docs,bin,migrations,settings,data,pipelines,var .
79+
@echo "-> Run isort imports ordering validation"
80+
@${ACTIVATE} isort --check-only .
81+
@echo "-> Run black validation"
82+
@${ACTIVATE} black --check ${BLACK_ARGS}
8183

8284
clean:
8385
@echo "-> Clean the Python env"

docs/built-in-pipelines.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Built-in Pipelines
44
==================
55

6+
As you may already know that pipelines are Python scripts that perform code
7+
analysis by executing a sequence of steps. ScanCode.io offers the following
8+
built-in—available—pipelines:
9+
610
.. _pipeline_base_class:
711

812
Pipeline Base Class

docs/custom-pipelines.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
Custom Pipelines
44
================
55

6-
A Pipeline is a Python script that performs code analysis by executing a
7-
sequence of steps.
6+
Pipelines are Python scripts; each contains a set of instructions that have to
7+
be executed in an orderly manner—pipe-like nature—to perform a code analysis.
88

99
- A pipeline is a **Python class** that lives in a Python module as a ``.py``
1010
**file**.
1111
- A pipeline class **always inherits** from the ``Pipeline`` base class
1212
:ref:`pipeline_base_class`, or from other existing pipeline classes, such as
1313
the :ref:`built_in_pipelines`.
14-
- It **defines steps** - execution order of the steps - using the ``steps``
15-
classmethod.
14+
- A pipeline **defines sequence of steps**execution order of the stepsusing
15+
the ``steps`` classmethod.
1616

1717
See :ref:`pipelines_concept` for more details.
1818

48.2 KB
Loading
149 KB
Loading
49.2 KB
Loading

0 commit comments

Comments
 (0)