Skip to content

Commit 15131a4

Browse files
Merge branch 'main' into feature/#409-Doc-link-&-checks
2 parents 7a4c05b + 5791a0e commit 15131a4

File tree

18 files changed

+288
-254
lines changed

18 files changed

+288
-254
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
name: 🐞 Bug Report
2+
name: Bug Report
33
about: File a bug report
4-
title: 🐞 <Insert Title>
4+
title: <Insert Title>
55
labels: bug
66
assignees: ''
77

@@ -74,4 +74,4 @@ Add any additional context about the problem here.
7474
#### Related Issues (optional)
7575
<!---
7676
Link related issues form the issue tracker here.
77-
-->
77+
-->

.github/actions/security-issues/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
- name: Install Python Toolbox / Security tool
4040
shell: bash
4141
run: |
42-
pip install exasol-toolbox==1.4.0
42+
pip install exasol-toolbox==1.5.0
4343
4444
- name: Create Security Issue Report
4545
shell: bash

doc/changes/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
* [unreleased](unreleased.md)
4+
* [1.5.0](changes_1.5.0.md)
45
* [1.4.0](changes_1.4.0.md)
56
* [1.3.0](changes_1.3.0.md)
67
* [1.2.0](changes_1.2.0.md)
@@ -36,6 +37,7 @@
3637
hidden:
3738
---
3839
unreleased
40+
changes_1.5.0
3941
changes_1.4.0
4042
changes_1.3.0
4143
changes_1.2.0

doc/changes/changes_1.5.0.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# 1.5.0 - 2025-06-18
2+
3+
## Summary
4+
This version of the PTB adds nox task `sonar:check`, see #451. This allows us to
5+
use SonarQube Cloud to analyze, visualize, & track linting, security, & coverage. To
6+
set it up, you'll need to execute the following instructions.
7+
8+
### For a public project
9+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
10+
```python
11+
source: Path = Path("exasol/<project-source-folder>")
12+
```
13+
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
14+
3. Activate the [SonarQubeCloud App](https://github.com/apps/sonarqubecloud)
15+
4. Create a project on SonarCloud
16+
5. Add the following information to the project's file `pyproject.toml`
17+
```toml
18+
19+
[tool.sonar]
20+
projectKey = "com.exasol:<project-key>"
21+
hostUrl = "https://sonarcloud.io"
22+
organization = "exasol"
23+
```
24+
6. Post-merge, update the branch protections to include SonarQube analysis
25+
26+
### For a private project
27+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
28+
```python
29+
source: Path = Path("exasol/<project-source-folder>")
30+
```
31+
2. Add the 'PRIVATE_SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
32+
3. Activate the [exasonarqubeprchecks App](https://github.com/apps/exasonarqubeprchecks)
33+
4. Create a project on https://sonar.exasol.com
34+
5. Add the following information to the project's file `pyproject.toml`
35+
```toml
36+
[tool.sonar]
37+
projectKey = "com.exasol:<project-key>"
38+
hostUrl = "https://sonar.exasol.com"
39+
organization = "exasol"
40+
```
41+
6. Post-merge, update the branch protections to include SonarQube analysis from exasonarqubeprchecks
42+
43+
## ✨ Features
44+
* #451: Added nox task to execute pysonar & added Sonar to the CI
45+
46+
## ⚒️ Refactorings
47+
* #451: Reduced scope of nox tasks `lint:code` (pylint) and `lint:security` (bandit) to analyze only the package code

doc/changes/unreleased.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
# Unreleased
22

33
## Summary
4-
This version of the PTB adds nox task `sonar:check`, see #451. This allows us to
5-
use SonarQube Cloud to analyze, visualize, & track linting, security, & coverage. In
6-
order to properly set it up, you'll need to do the following instruction for each **public** project.
7-
At this time, PTB currently does not support setting up SonarQube for a **private** project.
8-
9-
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
10-
```python
11-
source: Path = Path("exasol/toolbox")
12-
```
13-
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner).
14-
3. Activate the SonarQubeCloud App
15-
4. Create a project on SonarCloud
16-
5. Add the following information to the project's file `pyproject.toml`
17-
```toml
18-
[tool.sonar]
19-
projectKey = "com.exasol:<project-key>"
20-
hostUrl = "https://sonarcloud.io"
21-
organization = "exasol"
22-
```
23-
6. Post-merge, update the branch protections to include SonarQube analysis
244

255
## ✨ Features
26-
* #451: Added nox task to execute pysonar & added Sonar to the CI
27-
* #409: Doc link & checks
28-
29-
## ⚒️ Refactorings
30-
* #451: Reduced scope of nox tasks `lint:code` (pylint) and `lint:security` (bandit) to analyze only the package code
6+
* #409: Doc link & checks

doc/user_guide/getting_started.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,16 @@ We also need to configure settings for github-pages environment:
204204
8. Set up for Sonar
205205
+++++++++++++++++++
206206
PTB supports using SonarQube Cloud to analyze, visualize, & track linting, security, &
207-
coverage. In order to properly set it up, you'll need to do the following instructions
208-
for each **public** project. At this time, PTB currently does not support setting up
209-
SonarQube for a **private** project.
207+
coverage. In order to set it up, you'll need to do the following instructions.
210208

209+
For a **public** project
210+
^^^^^^^^^^^^^^^^^^^^^^^^
211211
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
212212
.. code-block:: python
213213
214-
source: Path = Path("exasol/toolbox")
215-
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner).
216-
3. Activate the SonarQubeCloud App
214+
source: Path = Path("exasol/<project-source-folder>")
215+
2. Add the 'SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
216+
3. Activate the `SonarQubeCloud App <https://github.com/apps/sonarqubecloud>`_
217217
4. Create a project on SonarCloud
218218
5. Add the following information to the project's file `pyproject.toml`
219219
.. code-block:: toml
@@ -224,7 +224,23 @@ SonarQube for a **private** project.
224224
organization = "exasol"
225225
6. Post-merge, update the branch protections to include SonarQube analysis
226226

227+
For a **private** project
228+
^^^^^^^^^^^^^^^^^^^^^^^^^
229+
1. Specify in the `noxconfig.py` the relative path to the project's source code in `Config.source`
230+
.. code-block:: python
231+
232+
source: Path = Path("exasol/<project-source-folder>")
233+
2. Add the 'PRIVATE_SONAR_TOKEN' to the 'Organization secrets' in GitHub (this requires a person being a GitHub organization owner)
234+
3. Activate the `exasonarqubeprchecks App <https://github.com/apps/exasonarqubeprchecks>`_
235+
4. Create a project on https://sonar.exasol.com
236+
5. Add the following information to the project's file `pyproject.toml`
237+
.. code-block:: toml
227238
239+
[tool.sonar]
240+
projectKey = "com.exasol:<project-key>"
241+
hostUrl = "https://sonar.exasol.com"
242+
organization = "exasol"
243+
6. Post-merge, update the branch protections to include SonarQube analysis from exasonarqubeprchecks
228244

229245
9. Go 🥜
230246
+++++++++++++

exasol/toolbox/templates/github/workflows/build-and-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Setup Python & Poetry Environment
21-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
21+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2222

2323
- name: Build Artifacts
2424
run: poetry build

exasol/toolbox/templates/github/workflows/check-release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Setup Python & Poetry Environment
18-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
18+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
1919

2020
- name: Check Tag Version
2121
# make sure the pushed/created tag matched the project version

exasol/toolbox/templates/github/workflows/checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 0
1717

1818
- name: Setup Python & Poetry Environment
19-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
19+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2020

2121
- name: Check Version(s)
2222
run: poetry run -- nox -s version:check
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: Setup Python & Poetry Environment
35-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
35+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
3636

3737
- name: Build Documentation
3838
run: |
@@ -55,7 +55,7 @@ jobs:
5555
uses: actions/checkout@v4
5656

5757
- name: Setup Python & Poetry Environment
58-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
58+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
5959

6060
- name: Run changelog update check
6161
run: poetry run -- nox -s changelog:updated
@@ -74,7 +74,7 @@ jobs:
7474
uses: actions/checkout@v4
7575

7676
- name: Setup Python & Poetry Environment
77-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
77+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
7878
with:
7979
python-version: ${{ matrix.python-version }}
8080

@@ -105,7 +105,7 @@ jobs:
105105
uses: actions/checkout@v4
106106

107107
- name: Setup Python & Poetry Environment
108-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
108+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
109109
with:
110110
python-version: ${{ matrix.python-version }}
111111

@@ -127,7 +127,7 @@ jobs:
127127
uses: actions/checkout@v4
128128

129129
- name: Setup Python & Poetry Environment
130-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
130+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
131131
with:
132132
python-version: ${{ matrix.python-version }}
133133

@@ -151,7 +151,7 @@ jobs:
151151
uses: actions/checkout@v4
152152

153153
- name: Setup Python & Poetry Environment
154-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
154+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
155155

156156
- name: Run format check
157157
run: poetry run -- nox -s project:format
@@ -173,7 +173,7 @@ jobs:
173173
uses: actions/checkout@v4
174174

175175
- name: Setup Python & Poetry Environment
176-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
176+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
177177
with:
178178
python-version: ${{ matrix.python-version }}
179179

exasol/toolbox/templates/github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Setup Python & Poetry Environment
20-
uses: exasol/python-toolbox/.github/actions/python-environment@1.4.0
20+
uses: exasol/python-toolbox/.github/actions/python-environment@1.5.0
2121

2222
- name: Build Documentation
2323
run: |

0 commit comments

Comments
 (0)