Skip to content

Commit 1c71a9b

Browse files
committed
Set return type to None from NoReturn
Use gitverse for generating release notes Upgrade to latest flake8 and isort Release v2.1
1 parent 4774c82 commit 1c71a9b

19 files changed

+82
-387
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
repos:
22
-
3-
repo: https://github.com/pycqa/flake8
4-
rev: '3.9.2'
3+
repo: https://github.com/PyCQA/flake8
4+
rev: '6.1.0'
55
hooks:
66
-
77
id: flake8
88
additional_dependencies:
99
- flake8-docstrings
1010
- flake8-sfs
11-
args: [--max-line-length=120, --extend-ignore=SFS3 D107 SFS301 D100 D104 D401 E731]
11+
args: [--max-line-length=120, --extend-ignore=SFS3 D107 SFS301 D100 D104 D401 SFS101 SFS201]
1212

1313
-
14-
repo: https://github.com/pre-commit/mirrors-isort
15-
rev: 'v5.8.0'
14+
repo: https://github.com/PyCQA/isort
15+
rev: '5.12.0'
1616
hooks:
1717
-
1818
id: isort

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ Clean code with pre-commit hooks: [`flake8`](https://flake8.pycqa.org/en/latest/
7878
### [Release Notes](https://github.com/thevickypedia/Jarvis_UI/blob/main/release_notes.rst)
7979
**Requirement**
8080
```shell
81-
python -m pip install changelog-generator
81+
python -m pip install gitverse
8282
```
8383

8484
**Usage**
8585
```shell
86-
changelog reverse -f release_notes.rst -t 'Release Notes'
86+
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
8787
```
8888

8989
### Linting

docs/README.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ <h2>Coding Standards<a class="headerlink" href="#coding-standards" title="Permal
129129
<section id="release-notes">
130130
<h2><a class="reference external" href="https://github.com/thevickypedia/Jarvis_UI/blob/main/release_notes.rst">Release Notes</a><a class="headerlink" href="#release-notes" title="Permalink to this heading"></a></h2>
131131
<p><strong>Requirement</strong></p>
132-
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>-m<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>changelog-generator
132+
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>-m<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>gitverse
133133
</pre></div>
134134
</div>
135135
<p><strong>Usage</strong></p>
136-
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>changelog<span class="w"> </span>reverse<span class="w"> </span>-f<span class="w"> </span>release_notes.rst<span class="w"> </span>-t<span class="w"> </span><span class="s1">&#39;Release Notes&#39;</span>
136+
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>gitverse-release<span class="w"> </span>reverse<span class="w"> </span>-f<span class="w"> </span>release_notes.rst<span class="w"> </span>-t<span class="w"> </span><span class="s1">&#39;Release Notes&#39;</span>
137137
</pre></div>
138138
</div>
139139
</section>

docs/_sources/README.md.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ Clean code with pre-commit hooks: [`flake8`](https://flake8.pycqa.org/en/latest/
7878
### [Release Notes](https://github.com/thevickypedia/Jarvis_UI/blob/main/release_notes.rst)
7979
**Requirement**
8080
```shell
81-
python -m pip install changelog-generator
81+
python -m pip install gitverse
8282
```
8383

8484
**Usage**
8585
```shell
86-
changelog reverse -f release_notes.rst -t 'Release Notes'
86+
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
8787
```
8888

8989
### Linting

docs/_static/pygments.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
1717
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
1818
.highlight .gd { color: #A00000 } /* Generic.Deleted */
1919
.highlight .ge { font-style: italic } /* Generic.Emph */
20+
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
2021
.highlight .gr { color: #FF0000 } /* Generic.Error */
2122
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
2223
.highlight .gi { color: #00A000 } /* Generic.Inserted */

docs/genindex.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ <h2 id="A">A</h2>
7272
</ul></td>
7373
<td style="width: 33%; vertical-align: top;"><ul>
7474
<li><a href="index.html#jarvis_ui.executables.starter.Activator">Activator (class in jarvis_ui.executables.starter)</a>
75+
</li>
76+
<li><a href="index.html#jarvis_ui.executables.starter.Activator.at_exit">at_exit() (jarvis_ui.executables.starter.Activator method)</a>
7577
</li>
7678
</ul></td>
7779
</tr></table>

docs/index.html

Lines changed: 26 additions & 12 deletions
Large diffs are not rendered by default.

docs/objects.inv

9 Bytes
Binary file not shown.

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen_docs.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22
# 'set -e' stops the execution of a script if a command or pipeline has an error.
33
# This is the opposite of the default shell behaviour, which is to ignore errors in scripts.
44
set -e
5-
6-
branch="$(git rev-parse --abbrev-ref HEAD)"
7-
checker=$(git diff --name-only `git merge-base $branch HEAD`)
8-
if [[ ! $checker =~ "release_notes.rst" ]]; then
9-
echo -e "\n********************************************************************ERROR**********************************************************"
10-
echo "Docs generation was ABORTED since release notes was not updated!! Changelog generator requires the release notes to be in sync."
11-
echo -e "***********************************************************************************************************************************\n"
12-
exit 255
13-
fi
14-
5+
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
156
rm -rf docs
167
mkdir docs
178
mkdir -p doc_generator/_static # creates a _static folder if unavailable

0 commit comments

Comments
 (0)