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.9 to 0.1.11. <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.11</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>super-without-brackets</code> (<code>W0245</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9257">#9257</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Check path string properly in <code>python -m ruff</code> invocations (<a href="https://redirect.github.com/astral-sh/ruff/pull/9367">#9367</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Tweak <code>relative-imports</code> message (<a href="https://redirect.github.com/astral-sh/ruff/pull/9365">#9365</a>)</li> <li>Add fix safety note for <code>yield-in-for-loop</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9364">#9364</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> <li><a href="https://github.com/diceroll123"><code>@diceroll123</code></a></li> <li><a href="https://github.com/nickdrozd"><code>@nickdrozd</code></a></li> <li><a href="https://github.com/tjkuson"><code>@tjkuson</code></a></li> <li><a href="https://github.com/zanieb"><code>@zanieb</code></a></li> </ul> <h2>v0.1.10</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>Improve <code>dummy_implementations</code> preview style formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/9240">#9240</a>)</li> <li>Normalise Hex and unicode escape sequences in strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9280">#9280</a>)</li> <li>Parenthesize long type annotations in annotated assignments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9210">#9210</a>)</li> <li>Parenthesize multi-context managers in <code>with</code> statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/9222">#9222</a>)</li> <li>[<code>flake8-pyi</code>] Implement <code>generator-return-from-iter-method</code> (<code>PYI058</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9313">#9313</a>)</li> <li>[<code>pylint</code>] Implement <code>empty-comment</code> (<code>PLR2044</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9174">#9174</a>)</li> <li>[<code>refurb</code>] Implement <code>bit-count</code> (<code>FURB161</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9265">#9265</a>)</li> <li>[<code>ruff</code>] Add <code>never-union</code> rule to detect redundant <code>typing.NoReturn</code> and <code>typing.Never</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9217">#9217</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add paths to TOML parse errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9358">#9358</a>)</li> <li>Add row and column numbers to formatter parse errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9321">#9321</a>)</li> <li>Improve responsiveness when invoked via Python (<a href="https://redirect.github.com/astral-sh/ruff/pull/9315">#9315</a>)</li> <li>Short rule messages should not end with a period (<a href="https://redirect.github.com/astral-sh/ruff/pull/9345">#9345</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Respect runtime-required decorators on functions (<a href="https://redirect.github.com/astral-sh/ruff/pull/9317">#9317</a>)</li> </ul> <h3>Bug fixes</h3> <!-- 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.11</h2> <h3>Preview features</h3> <ul> <li>[<code>pylint</code>] Implement <code>super-without-brackets</code> (<code>W0245</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9257">#9257</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Check path string properly in <code>python -m ruff</code> invocations (<a href="https://redirect.github.com/astral-sh/ruff/pull/9367">#9367</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Tweak <code>relative-imports</code> message (<a href="https://redirect.github.com/astral-sh/ruff/pull/9365">#9365</a>)</li> <li>Add fix safety note for <code>yield-in-for-loop</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9364">#9364</a>)</li> </ul> <h2>0.1.10</h2> <h3>Preview features</h3> <ul> <li>Improve <code>dummy_implementations</code> preview style formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/9240">#9240</a>)</li> <li>Normalise Hex and unicode escape sequences in strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9280">#9280</a>)</li> <li>Parenthesize long type annotations in annotated assignments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9210">#9210</a>)</li> <li>Parenthesize multi-context managers in <code>with</code> statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/9222">#9222</a>)</li> <li>[<code>flake8-pyi</code>] Implement <code>generator-return-from-iter-method</code> (<code>PYI058</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9313">#9313</a>)</li> <li>[<code>pylint</code>] Implement <code>empty-comment</code> (<code>PLR2044</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9174">#9174</a>)</li> <li>[<code>refurb</code>] Implement <code>bit-count</code> (<code>FURB161</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9265">#9265</a>)</li> <li>[<code>ruff</code>] Add <code>never-union</code> rule to detect redundant <code>typing.NoReturn</code> and <code>typing.Never</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9217">#9217</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add paths to TOML parse errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9358">#9358</a>)</li> <li>Add row and column numbers to formatter parse errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9321">#9321</a>)</li> <li>Improve responsiveness when invoked via Python (<a href="https://redirect.github.com/astral-sh/ruff/pull/9315">#9315</a>)</li> <li>Short rule messages should not end with a period (<a href="https://redirect.github.com/astral-sh/ruff/pull/9345">#9345</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Respect runtime-required decorators on functions (<a href="https://redirect.github.com/astral-sh/ruff/pull/9317">#9317</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid <code>asyncio-dangling-task</code> for nonlocal and global bindings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9263">#9263</a>)</li> <li>Escape trailing placeholders in rule documentation (<a href="https://redirect.github.com/astral-sh/ruff/pull/9301">#9301</a>)</li> <li>Fix continuation detection following multi-line strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9332">#9332</a>)</li> <li>Fix scoping for generators in named expressions in classes (<a href="https://redirect.github.com/astral-sh/ruff/pull/9248">#9248</a>)</li> <li>Port from obsolete wsl crate to is-wsl (<a href="https://redirect.github.com/astral-sh/ruff/pull/9356">#9356</a>)</li> <li>Remove special pre-visit for module docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9261">#9261</a>)</li> <li>Respect <code>__str__</code> definitions from super classes (<a href="https://redirect.github.com/astral-sh/ruff/pull/9338">#9338</a>)</li> <li>Respect <code>unused-noqa</code> via <code>per-file-ignores</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9300">#9300</a>)</li> <li>Respect attribute chains when resolving builtin call paths (<a href="https://redirect.github.com/astral-sh/ruff/pull/9309">#9309</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="fefc7e8199
"><code>fefc7e8</code></a> Bump version to 0.1.11 (<a href="https://redirect.github.com/astral-sh/ruff/issues/9370">#9370</a>)</li> <li><a href="973ae7e922
"><code>973ae7e</code></a> Disable the fuzzer CI job (<a href="https://redirect.github.com/astral-sh/ruff/issues/9369">#9369</a>)</li> <li><a href="3fcc1402f6
"><code>3fcc140</code></a> [pylint] - implement <code>super-without-brackets</code>/<code>W0245</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/9257">#9257</a>)</li> <li><a href="08c60f513b
"><code>08c60f5</code></a> Check path string properly (<a href="https://redirect.github.com/astral-sh/ruff/issues/9367">#9367</a>)</li> <li><a href="38f4d9e335
"><code>38f4d9e</code></a> Tweak <code>relative-imports</code> message (<a href="https://redirect.github.com/astral-sh/ruff/issues/9365">#9365</a>)</li> <li><a href="f07d35051c
"><code>f07d350</code></a> Add fix safety note for yield-in-for-loop (<a href="https://redirect.github.com/astral-sh/ruff/issues/9364">#9364</a>)</li> <li><a href="2743387910
"><code>2743387</code></a> Bump version to 0.1.10 (<a href="https://redirect.github.com/astral-sh/ruff/issues/9360">#9360</a>)</li> <li><a href="a268648c58
"><code>a268648</code></a> Add paths to toml parse errors (<a href="https://redirect.github.com/astral-sh/ruff/issues/9358">#9358</a>)</li> <li><a href="9073220887
"><code>9073220</code></a> Make all dependencies workspace dependencies (<a href="https://redirect.github.com/astral-sh/ruff/issues/9333">#9333</a>)</li> <li><a href="0157cdb81a
"><code>0157cdb</code></a> Drop unused "ureq" dev-dependency from ruff_cli (<a href="https://redirect.github.com/astral-sh/ruff/issues/9357">#9357</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.9...v0.1.11">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.
- data-processing > Processes the data using NLP methods and transfers matched data into the SQL table ready for use.
- 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=postgres
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=mongodb
PYTHON_MONGO_PASSWORD=password
PYTHON_MONGO_PORT=27017
PYTHON_MONGO_DATABASE=transparenzregister
# An overwrite path to an sqlite db
PYTHON_SQLITE_PATH=PathToSQLite3.db
PYTHON_DASH_LOGIN_USERNAME=some-login-to-webgui
PYTHON_DASH_LOGIN_PW=some-pw-to-login-to-webgui
# Every x hours
PYTHON_INGEST_SCHEDULE=12
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%