mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:02:33 +02:00
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.4 to 0.1.5. <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.5</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-bandit</code>] Implement <code>mako-templates</code> (<code>S702</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8533">#8533</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO105</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8490">#8490</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO109</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8534">#8534</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO110</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8537">#8537</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO115</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8486">#8486</a>)</li> <li>[<code>refurb</code>] Implement <code>type-none-comparison</code> (<code>FURB169</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8487">#8487</a>)</li> <li>Flag all comparisons against builtin types in <code>E721</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8491">#8491</a>)</li> <li>Make <code>SIM118</code> fix as safe when the expression is a known dictionary (<a href="https://redirect.github.com/astral-sh/ruff/pull/8525">#8525</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Fix multiline lambda expression statement formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/8466">#8466</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add hidden <code>--extension</code> to override inference of source type from file extension (<a href="https://redirect.github.com/astral-sh/ruff/pull/8373">#8373</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Account for selector specificity when merging <code>extend_unsafe_fixes</code> and <code>override extend_safe_fixes</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8444">#8444</a>)</li> <li>Add support for disabling cache with <code>RUFF_NO_CACHE</code> environment variable (<a href="https://redirect.github.com/astral-sh/ruff/pull/8538">#8538</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>E721</code>] Flag comparisons to <code>memoryview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8485">#8485</a>)</li> <li>Allow collapsed-ellipsis bodies in other statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/8499">#8499</a>)</li> <li>Avoid <code>D301</code> autofix for <code>u</code> prefixed strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8495">#8495</a>)</li> <li>Only flag <code>flake8-trio</code> rules when <code>trio</code> import is present (<a href="https://redirect.github.com/astral-sh/ruff/pull/8550">#8550</a>)</li> <li>Reject more syntactically invalid Python programs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8524">#8524</a>)</li> <li>Avoid raising <code>TRIO115</code> violations for <code>trio.sleep(...)</code> calls with non-number values (<a href="https://redirect.github.com/astral-sh/ruff/pull/8532">#8532</a>)</li> <li>Fix <code>F841</code> false negative on assignment to multiple variables (<a href="https://redirect.github.com/astral-sh/ruff/pull/8489">#8489</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix link to isort <code>known-first-party</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8562">#8562</a>)</li> <li>Add notes on fix safety to a few rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/8500">#8500</a>)</li> <li>Add missing toml config tabs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8512">#8512</a>)</li> <li>Add instructions for configuration of Emacs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8488">#8488</a>)</li> <li>Improve detail link contrast in dark mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/8548">#8548</a>)</li> <li>Fix typo in example (<a href="https://redirect.github.com/astral-sh/ruff/pull/8506">#8506</a>)</li> <li>Added tabs for configuration files in the documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8480">#8480</a>)</li> <li>Recommend <code>project.requires-python</code> over <code>target-version</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8513">#8513</a>)</li> <li>Add singleton escape hatch to <code>B008</code> documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8501">#8501</a>)</li> <li>Fix tab configuration docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8502">#8502</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.5</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-bandit</code>] Implement <code>mako-templates</code> (<code>S702</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8533">#8533</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO105</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8490">#8490</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO109</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8534">#8534</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO110</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8537">#8537</a>)</li> <li>[<code>flake8-trio</code>] Implement <code>TRIO115</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8486">#8486</a>)</li> <li>[<code>refurb</code>] Implement <code>type-none-comparison</code> (<code>FURB169</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8487">#8487</a>)</li> <li>Flag all comparisons against builtin types in <code>E721</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8491">#8491</a>)</li> <li>Make <code>SIM118</code> fix as safe when the expression is a known dictionary (<a href="https://redirect.github.com/astral-sh/ruff/pull/8525">#8525</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Fix multiline lambda expression statement formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/8466">#8466</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add hidden <code>--extension</code> to override inference of source type from file extension (<a href="https://redirect.github.com/astral-sh/ruff/pull/8373">#8373</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Account for selector specificity when merging <code>extend_unsafe_fixes</code> and <code>override extend_safe_fixes</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8444">#8444</a>)</li> <li>Add support for disabling cache with <code>RUFF_NO_CACHE</code> environment variable (<a href="https://redirect.github.com/astral-sh/ruff/pull/8538">#8538</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>E721</code>] Flag comparisons to <code>memoryview</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8485">#8485</a>)</li> <li>Allow collapsed-ellipsis bodies in other statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/8499">#8499</a>)</li> <li>Avoid <code>D301</code> autofix for <code>u</code> prefixed strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/8495">#8495</a>)</li> <li>Only flag <code>flake8-trio</code> rules when <code>trio</code> import is present (<a href="https://redirect.github.com/astral-sh/ruff/pull/8550">#8550</a>)</li> <li>Reject more syntactically invalid Python programs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8524">#8524</a>)</li> <li>Avoid raising <code>TRIO115</code> violations for <code>trio.sleep(...)</code> calls with non-number values (<a href="https://redirect.github.com/astral-sh/ruff/pull/8532">#8532</a>)</li> <li>Fix <code>F841</code> false negative on assignment to multiple variables (<a href="https://redirect.github.com/astral-sh/ruff/pull/8489">#8489</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix link to isort <code>known-first-party</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8562">#8562</a>)</li> <li>Add notes on fix safety to a few rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/8500">#8500</a>)</li> <li>Add missing toml config tabs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8512">#8512</a>)</li> <li>Add instructions for configuration of Emacs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8488">#8488</a>)</li> <li>Improve detail link contrast in dark mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/8548">#8548</a>)</li> <li>Fix typo in example (<a href="https://redirect.github.com/astral-sh/ruff/pull/8506">#8506</a>)</li> <li>Added tabs for configuration files in the documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8480">#8480</a>)</li> <li>Recommend <code>project.requires-python</code> over <code>target-version</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/8513">#8513</a>)</li> <li>Add singleton escape hatch to <code>B008</code> documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/8501">#8501</a>)</li> <li>Fix tab configuration docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/8502">#8502</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="3956f38999
"><code>3956f38</code></a> Prepare release 0.1.5 (<a href="https://redirect.github.com/astral-sh/ruff/issues/8570">#8570</a>)</li> <li><a href="fe9727ac38
"><code>fe9727a</code></a> Add <code>rooster</code> release management configuration and instructions (<a href="https://redirect.github.com/astral-sh/ruff/issues/8567">#8567</a>)</li> <li><a href="3ebaca5246
"><code>3ebaca5</code></a> Doc: Fix link to isort <code>known-first-party</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/8562">#8562</a>)</li> <li><a href="7391f74cbc
"><code>7391f74</code></a> Add hidden <code>--extension</code> to override inference of source type from file exten...</li> <li><a href="71e93a9fa4
"><code>71e93a9</code></a> Only flag flake8-trio rule when trio is present (<a href="https://redirect.github.com/astral-sh/ruff/issues/8550">#8550</a>)</li> <li><a href="e2c7b1ece6
"><code>e2c7b1e</code></a> [TRIO] Add TRIO109 rule (<a href="https://redirect.github.com/astral-sh/ruff/issues/8534">#8534</a>)</li> <li><a href="621e98f452
"><code>621e98f</code></a> Improve detail link contrast in dark mode (<a href="https://redirect.github.com/astral-sh/ruff/issues/8548">#8548</a>)</li> <li><a href="0126f74c29
"><code>0126f74</code></a> Add TRIO110 rule (<a href="https://redirect.github.com/astral-sh/ruff/issues/8537">#8537</a>)</li> <li><a href="fce9f63418
"><code>fce9f63</code></a> [<code>flake8-bandit</code>] Implement <code>mako-templates</code> (<code>S702</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/8533">#8533</a>)</li> <li><a href="ce549e75bc
"><code>ce549e7</code></a> Update pre-commit documentation (<a href="https://redirect.github.com/astral-sh/ruff/issues/8545">#8545</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.4...v0.1.5">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>
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%