Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[srdjan] flake8 introduced with docstring-convention added #58

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
63d0a01
Backup before parameter change for processes (config)
CodeBojan Feb 13, 2024
96ca26e
Failed attempt at being smart - config detection
CodeBojan Feb 13, 2024
af47297
Partial hot reaload backup
CodeBojan Feb 14, 2024
1847be2
Thread switched from Process
CodeBojan Feb 15, 2024
98548c7
Backup before thread state implementation
CodeBojan Feb 19, 2024
ec40335
Comments removed & initial boot script added
CodeBojan Feb 22, 2024
aace53f
Backup before adding Config class to implementation
CodeBojan Feb 26, 2024
562d275
Backup before merge with master v1
CodeBojan Feb 26, 2024
87f8043
Merge branch 'master' of https://github.com/sale3/iot-gateway-app int…
CodeBojan Feb 26, 2024
0cf4671
Config class added for sensor_devices.py
CodeBojan Feb 26, 2024
45df6ac
Daily backup v1
CodeBojan Feb 26, 2024
889fbe7
Daily backup v3
CodeBojan Feb 28, 2024
c66d023
Conflicts with master resolved from 35-mqtt branch
CodeBojan Feb 28, 2024
0ebb5aa
Config object applied
CodeBojan Feb 28, 2024
82e2dfd
Changed broker names and slight changes to broker init
CodeBojan Feb 28, 2024
ff0442d
Config object implementation finished
CodeBojan Feb 28, 2024
386da6e
[srdjan] konfiguracija pogresna
Feb 28, 2024
59604bf
Merge remote-tracking branch 'origin/42-can-config-file-upgrade' into…
Feb 28, 2024
307f174
Autopep applied
CodeBojan Feb 29, 2024
fc11669
Merge branch 'master' of https://github.com/sale3/iot-gateway-app int…
CodeBojan Feb 29, 2024
5b66c0a
Merge branch '42-can-config-file-upgrade' of https://github.com/sale3…
CodeBojan Feb 29, 2024
84698c5
Autopep applied v2
CodeBojan Feb 29, 2024
243d4a3
Autopep applied v3
CodeBojan Feb 29, 2024
27da999
Autopep applied v4
CodeBojan Feb 29, 2024
9b16dc8
Autopep applied v5
CodeBojan Feb 29, 2024
32917d4
Fixed minor config missteps
CodeBojan Feb 29, 2024
dbebf74
Shutdown of gateway and dispatcher fixed
CodeBojan Feb 29, 2024
7b93a1e
MQTT code replaced with MQTT object in simulator threads
CodeBojan Feb 29, 2024
488c1f8
[srdjan] flake8 introduced with docstring-convention added
Feb 29, 2024
466045c
[srdjan] pip install flake8-docstrings in action
Feb 29, 2024
0ccd343
[srdjan] pip install flake8-docstrings in action 1
Feb 29, 2024
a65b971
[srdjan] pip install flake8-docstrings in action 2
Feb 29, 2024
c0b0bfa
[srdjan] pip install flake8-docstrings in action 3
Mar 1, 2024
09bccff
[srdjan] pip install flake8-docstrings in action 4
Mar 1, 2024
651edb1
[srdjan] pip install flake8-docstrings in action 5
Mar 1, 2024
6cf1fe6
[srdjan] pip install flake8-docstrings in action 6
Mar 1, 2024
f077cd3
[srdjan] pip install flake8-docstrings in action 7
Mar 1, 2024
7a43229
[srdjan] removing triple quotes docstring error
Mar 1, 2024
cd490ad
[srdjan] docstring error changes in app
Mar 1, 2024
1f3193d
[srdjan] flake8 with docstring
Mar 1, 2024
2b05acf
[srdjan] flake8 with docstring
Mar 1, 2024
80514e4
[srdjan] merging with cleaning branch
Mar 1, 2024
3d24483
[srdjan] added W504
Mar 1, 2024
735b1ec
Added fastapi to requirements.txt
stekap000 Mar 1, 2024
f2bd18a
Added D213 to ignore list in setup.cfg since it needs to have either …
stekap000 Mar 1, 2024
d48f207
Commented out all ignores in setup.cfg for pycodestyle
stekap000 Mar 1, 2024
79f55b5
config_util docstrings and some function removal
stekap000 Mar 1, 2024
734dbc7
rest_api added docstrings and removed unnecessary imports
stekap000 Mar 1, 2024
21b477d
mqtt_util added docstrings
stekap000 Mar 1, 2024
7f09d1f
Small fix
CodeBojan Mar 4, 2024
7589042
Merge branch '42-can-config-file-upgrade' of https://github.com/sale3…
CodeBojan Mar 4, 2024
e7fc261
Removed TODOs
CodeBojan Mar 4, 2024
78a2b67
Properties added and getters/setters removed from Config class
CodeBojan Mar 4, 2024
1684721
Docstring completed and cache files removed
CodeBojan Mar 4, 2024
9d3460d
Docstring updated v1
CodeBojan Mar 4, 2024
680189c
Docstrings
stekap000 Mar 4, 2024
0528adb
Docstring updated can_service.py
CodeBojan Mar 4, 2024
9087dc1
Hopefully all constant names are now uppercase
stekap000 Mar 4, 2024
a5751fa
Docstring of can_service.py updated v2
CodeBojan Mar 4, 2024
7b0c8cb
Docstring of can_service.py updated v3
CodeBojan Mar 4, 2024
a832e56
[srdjan] added D406 in ignore, and changed one err in can_service
Mar 4, 2024
75e0182
Merge branch '42-can-config-file-upgrade' into 59-restmqtt-write-docs…
stekap000 Mar 4, 2024
ddbc2ac
Merge pull request #61 from sale3/59-restmqtt-write-docstrings-for-po…
stekap000 Mar 4, 2024
88eddbe
[srdjan] some ambigous docstring errors in sensor device are resolved
Mar 4, 2024
568676a
[srdjan] some ambigous docstring errors in mqtt utils
Mar 4, 2024
c765299
[srdjan] some ambigous docstring errors in config util and data service
Mar 5, 2024
85a0cbb
Docstring v4
CodeBojan Mar 5, 2024
bcbd659
Docstring finally done
CodeBojan Mar 5, 2024
e1a47bd
[srdjan] initial sphinx
Mar 5, 2024
f5bd1c5
[srdjan] removing output contents
Mar 5, 2024
857dd87
[srdjan] sphinx adde htmldocumentation upload
Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install flake8-docstrings
- run: flake8 ./src/ --docstring-convention numpy --max-line-length 120 --ignore D401,D205,D400,D406,D200,D403
- uses: ricardochaves/[email protected]
with:
python-root-list: "src"
Expand All @@ -28,8 +34,8 @@ jobs:
use-mypy: false
use-isort: false
extra-pylint-options: "--max-line-length=120 --ignore=E722,W0703,E0401,W0107"
extra-pycodestyle-options: "--max-line-length=120 --ignore=E722"
extra-flake8-options: ""
extra-pycodestyle-options: "--max-line-length=120 --ignore=E722,W504"
extra-flake8-options: "--docstring-convention numpy --max-line-length 120 --ignore D401,D205,D400,D406"
extra-black-options: ""
extra-mypy-options: ""
extra-isort-options: ""
16 changes: 16 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Pull Request Docs Check"
on:
- pull_request

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/_build/html/
6 changes: 3 additions & 3 deletions Docker/system/mqtt-broker/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
allow_anonymous false
listener 1883
persistence true
persistence_location /mosquitto/data
log_dest file /mosquitto/log/mosquitto.log
password_file /mosquitto/config/users
persistence_location /data
log_dest file /log/mosquitto.log
password_file /config/users
4 changes: 0 additions & 4 deletions docs/output/.buildinfo

This file was deleted.

Binary file removed docs/output/.doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/output/.doctrees/index.doctree
Binary file not shown.
Binary file removed docs/output/.doctrees/modules.doctree
Binary file not shown.
Binary file removed docs/output/.doctrees/src.Docker.doctree
Binary file not shown.
Binary file not shown.
Binary file removed docs/output/.doctrees/src.Docker.gateway-app.doctree
Binary file not shown.
Binary file not shown.
Binary file removed docs/output/.doctrees/src.Docker.sensors.doctree
Binary file not shown.
Binary file removed docs/output/.doctrees/src.doctree
Binary file not shown.
101 changes: 0 additions & 101 deletions docs/output/LICRcyr2utf8.xdy

This file was deleted.

Loading
Loading