mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 05:13:55 +02:00
759ee0ecf233db667b9d31841ec5da0c786e7ad8
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.2 to 0.1.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>v0.1.3</h2> <p>This release includes a variety of improvements to the Ruff formatter (available now as <code>ruff format</code>), removing several known and unintentional deviations from Black.</p> <h2>Changes</h2> <h3>Formatter</h3> <ul> <li>Avoid space around pow for <code>None</code>, <code>True</code> and <code>False</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8189">#8189</a>)</li> <li>Avoid sorting all paths in the format command (<a href="https://redirect.github.com/astral-sh/ruff/pull/8181">#8181</a>)</li> <li>Insert necessary blank line between class and leading comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8224">#8224</a>)</li> <li>Avoid introducing new parentheses in annotated assignments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8233">#8233</a>)</li> <li>Refine the warnings about incompatible linter options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8196">#8196</a>)</li> <li>Add test and basic implementation for formatter preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/8044">#8044</a>)</li> <li>Refine warning about incompatible <code>isort</code> settings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8192">#8192</a>)</li> <li>Only omit optional parentheses for starting or ending with parentheses (<a href="https://redirect.github.com/astral-sh/ruff/pull/8238">#8238</a>)</li> <li>Use source type to determine parser mode for formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/8205">#8205</a>)</li> <li>Don't warn about magic trailing comma when <code>isort.force-single-line</code> is true (<a href="https://redirect.github.com/astral-sh/ruff/pull/8244">#8244</a>)</li> <li>Use <code>SourceKind::diff</code> for formatter (<a href="https://redirect.github.com/astral-sh/ruff/pull/8240">#8240</a>)</li> <li>Fix <code>fmt:off</code> with trailing child comment (<a href="https://redirect.github.com/astral-sh/ruff/pull/8234">#8234</a>)</li> <li>Formatter parentheses support for <code>IpyEscapeCommand</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8207">#8207</a>)</li> </ul> <h3>Linter</h3> <ul> <li>[<code>pylint</code>] Add buffer methods to <code>bad-dunder-method-name</code> (<code>PLW3201</code>) exclusions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8190">#8190</a>)</li> <li>Match rule prefixes from <code>external</code> codes setting in <code>unused-noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8177">#8177</a>)</li> <li>Use <code>line-length</code> setting for isort in lieu of <code>pycodestyle.max-line-length</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8235">#8235</a>)</li> <li>Update fix for <code>unnecessary-paren-on-raise-exception</code> to unsafe for unknown types (<a href="https://redirect.github.com/astral-sh/ruff/pull/8231">#8231</a>)</li> <li>Correct quick fix message for <code>W605</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8255">#8255</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix typo in max-doc-length documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8201">#8201</a>)</li> <li>Improve documentation around linter-formatter conflicts (<a href="https://redirect.github.com/astral-sh/ruff/pull/8257">#8257</a>)</li> <li>Fix link to error suppression documentation in <code>unused-noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8172">#8172</a>)</li> <li>Add <code>external</code> option to <code>unused-noqa</code> documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8171">#8171</a>)</li> <li>Add title attribute to icons (<a href="https://redirect.github.com/astral-sh/ruff/pull/8060">#8060</a>)</li> <li>Clarify unsafe case in RSE102 (<a href="https://redirect.github.com/astral-sh/ruff/pull/8256">#8256</a>)</li> <li>Fix skipping formatting examples (<a href="https://redirect.github.com/astral-sh/ruff/pull/8210">#8210</a>)</li> <li>docs: fix name of <code>magic-trailing-comma</code> option in README (<a href="https://redirect.github.com/astral-sh/ruff/pull/8200">#8200</a>)</li> <li>Add note about scope of rule changing in versioning policy (<a href="https://redirect.github.com/astral-sh/ruff/pull/8169">#8169</a>)</li> <li>Document: Fix default lint rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/8218">#8218</a>)</li> <li>Fix a wrong setting in configuration.md (<a href="https://redirect.github.com/astral-sh/ruff/pull/8186">#8186</a>)</li> <li>Fix misspelled TOML headers in the tutorial (<a href="https://redirect.github.com/astral-sh/ruff/pull/8209">#8209</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/T-256"><code>@T-256</code></a></li> <li><a href="https://github.com/TeamSpen210"><code>@TeamSpen210</code></a></li> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.1.3</h2> <p>This release includes a variety of improvements to the Ruff formatter, removing several known and unintentional deviations from Black.</p> <h3>Formatter</h3> <ul> <li>Avoid space around pow for <code>None</code>, <code>True</code> and <code>False</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8189">#8189</a>)</li> <li>Avoid sorting all paths in the format command (<a href="https://redirect.github.com/astral-sh/ruff/pull/8181">#8181</a>)</li> <li>Insert necessary blank line between class and leading comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8224">#8224</a>)</li> <li>Avoid introducing new parentheses in annotated assignments (<a href="https://redirect.github.com/astral-sh/ruff/pull/8233">#8233</a>)</li> <li>Refine the warnings about incompatible linter options (<a href="https://redirect.github.com/astral-sh/ruff/pull/8196">#8196</a>)</li> <li>Add test and basic implementation for formatter preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/8044">#8044</a>)</li> <li>Refine warning about incompatible <code>isort</code> settings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8192">#8192</a>)</li> <li>Only omit optional parentheses for starting or ending with parentheses (<a href="https://redirect.github.com/astral-sh/ruff/pull/8238">#8238</a>)</li> <li>Use source type to determine parser mode for formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/8205">#8205</a>)</li> <li>Don't warn about magic trailing comma when <code>isort.force-single-line</code> is true (<a href="https://redirect.github.com/astral-sh/ruff/pull/8244">#8244</a>)</li> <li>Use <code>SourceKind::diff</code> for formatter (<a href="https://redirect.github.com/astral-sh/ruff/pull/8240">#8240</a>)</li> <li>Fix <code>fmt:off</code> with trailing child comment (<a href="https://redirect.github.com/astral-sh/ruff/pull/8234">#8234</a>)</li> <li>Formatter parentheses support for <code>IpyEscapeCommand</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8207">#8207</a>)</li> </ul> <h3>Linter</h3> <ul> <li>[<code>pylint</code>] Add buffer methods to <code>bad-dunder-method-name</code> (<code>PLW3201</code>) exclusions (<a href="https://redirect.github.com/astral-sh/ruff/pull/8190">#8190</a>)</li> <li>Match rule prefixes from <code>external</code> codes setting in <code>unused-noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8177">#8177</a>)</li> <li>Use <code>line-length</code> setting for isort in lieu of <code>pycodestyle.max-line-length</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8235">#8235</a>)</li> <li>Update fix for <code>unnecessary-paren-on-raise-exception</code> to unsafe for unknown types (<a href="https://redirect.github.com/astral-sh/ruff/pull/8231">#8231</a>)</li> <li>Correct quick fix message for <code>W605</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8255">#8255</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix typo in max-doc-length documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8201">#8201</a>)</li> <li>Improve documentation around linter-formatter conflicts (<a href="https://redirect.github.com/astral-sh/ruff/pull/8257">#8257</a>)</li> <li>Fix link to error suppression documentation in <code>unused-noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8172">#8172</a>)</li> <li>Add <code>external</code> option to <code>unused-noqa</code> documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8171">#8171</a>)</li> <li>Add title attribute to icons (<a href="https://redirect.github.com/astral-sh/ruff/pull/8060">#8060</a>)</li> <li>Clarify unsafe case in RSE102 (<a href="https://redirect.github.com/astral-sh/ruff/pull/8256">#8256</a>)</li> <li>Fix skipping formatting examples (<a href="https://redirect.github.com/astral-sh/ruff/pull/8210">#8210</a>)</li> <li>docs: fix name of <code>magic-trailing-comma</code> option in README (<a href="https://redirect.github.com/astral-sh/ruff/pull/8200">#8200</a>)</li> <li>Add note about scope of rule changing in versioning policy (<a href="https://redirect.github.com/astral-sh/ruff/pull/8169">#8169</a>)</li> <li>Document: Fix default lint rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/8218">#8218</a>)</li> <li>Fix a wrong setting in configuration.md (<a href="https://redirect.github.com/astral-sh/ruff/pull/8186">#8186</a>)</li> <li>Fix misspelled TOML headers in the tutorial (<a href="https://redirect.github.com/astral-sh/ruff/pull/8209">#8209</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="3e7b92991b
"><code>3e7b929</code></a> Bump version to v0.1.3 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8259">#8259</a>)</li> <li><a href="25d4ddaa60
"><code>25d4dda</code></a> Add title attribute to icons (<a href="https://redirect.github.com/astral-sh/ruff/issues/8060">#8060</a>)</li> <li><a href="63a5a12a41
"><code>63a5a12</code></a> Improve documentation around linter-formatter conflicts (<a href="https://redirect.github.com/astral-sh/ruff/issues/8257">#8257</a>)</li> <li><a href="c32f943d86
"><code>c32f943</code></a> Don't warn about magic trailing comma when <code>isort.force-single-line</code> is true ...</li> <li><a href="d211074f59
"><code>d211074</code></a> Clarify unsafe case in RSE102 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8256">#8256</a>)</li> <li><a href="4ffd4ed61f
"><code>4ffd4ed</code></a> Correct quick fix message for <code>W605</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/8255">#8255</a>)</li> <li><a href="a4dd1e5fad
"><code>a4dd1e5</code></a> Refine the warnings about incompatible linter options (<a href="https://redirect.github.com/astral-sh/ruff/issues/8196">#8196</a>)</li> <li><a href="be3307e9a6
"><code>be3307e</code></a> Make <code>unnecessary-paren-on-raise-exception</code> an unsafe edit (<a href="https://redirect.github.com/astral-sh/ruff/issues/8231">#8231</a>)</li> <li><a href="317d3dd612
"><code>317d3dd</code></a> Add test and basic implementation for formatter preview mode (<a href="https://redirect.github.com/astral-sh/ruff/issues/8044">#8044</a>)</li> <li><a href="f5e850745c
"><code>f5e8507</code></a> Only omit optional parentheses for starting or ending with parentheses (<a href="https://redirect.github.com/astral-sh/ruff/issues/8238">#8238</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.2...v0.1.3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aki_prj23_transparenzregister
Contributions
See the CONTRIBUTING.md about how code should be formatted and what kind of rules we set ourselves.
Available entrypoints
The project has currently the following entrypoint available:
- data-transformation > Transfers all the data from the mongodb into the sql db to make it available as production data.
- reset-sql > Resets all sql tables in the connected db.
- copy-sql > Copys the content of a db to another db.
- webserver > Starts the webserver showing the analysis results.
DB Connection settings
To connect to the SQL db see sql/connector.py To connect to the Mongo db see [connect]
Create a secrets.json
in the root of this repo with the following structure (values to be replaces by desired config):
The sqlite db is alternative to the postgres section.
{
"sqlite": "path-to-sqlite.db",
"postgres": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "db-name",
"port": 5432
},
"mongo": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "transparenzregister",
"port": 27017
}
}
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a .env
file with
the following layout:
PYTHON_POSTGRES_USERNAME=postgres
PYTHON_POSTGRES_PASSWORD=postgres
PYTHON_POSTGRES_HOST=localhost
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=localhost
PYTHON_MONGO_PASSWORD=password
PYTHON_MONGO_PORT=27017
PYTHON_MONGO_DATABASE=transparenzregister
PYTHON_SQLITE_PATH=PathToSQLite3.db # An overwrite path to an sqllite db
PYTHON_DASH_LOGIN_USERNAME=some-login-to-webgui
PYTHON_DASH_LOGIN_PW=some-pw-to-login-to-webgui
CR=ghcr.io/fhswf/aki_prj23_transparenzregister
TAG=latest
HTTP_PORT=80
The prefix PYTHON_
can be customized by setting a different prefix
when constructing the ConfigProvider.
Description
Languages
Jupyter Notebook
84.5%
HTML
12.1%
Python
3.3%