github-actions[bot] a1a519d4d6
build(deps-dev): bump ruff from 0.1.3 to 0.1.4 (#326)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.3 to 0.1.4.
<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.4</h2>
<h2>Changes</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-trio</code>] Implement
<code>timeout-without-await</code> (<code>TRIO001</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8439">#8439</a>)</li>
<li>[<code>numpy</code>] Implement NumPy 2.0 migration rule
(<code>NPY200</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7702">#7702</a>)</li>
<li>[<code>pylint</code>] Implement <code>bad-open-mode</code>
(<code>W1501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8294">#8294</a>)</li>
<li>[<code>pylint</code>] Implement <code>import-outside-toplevel</code>
(<code>C0415</code>) rule (<a
href="https://redirect.github.com/astral-sh/ruff/pull/5180">#5180</a>)</li>
<li>[<code>pylint</code>] Implement <code>useless-with-lock</code>
(<code>W2101</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8321">#8321</a>)</li>
<li>[<code>pyupgrade</code>] Implement <code>timeout-error-alias</code>
(<code>UP041</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8476">#8476</a>)</li>
<li>[<code>refurb</code>] Implement <code>isinstance-type-none</code>
(<code>FURB168</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8308">#8308</a>)</li>
<li>Detect confusable Unicode-to-Unicode units in <code>RUF001</code>,
<code>RUF002</code>, and <code>RUF003</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/4430">#4430</a>)</li>
<li>Add newline after module docstrings in preview style (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8283">#8283</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>Add a note on line-too-long to the formatter docs (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8314">#8314</a>)</li>
<li>Preserve trailing statement semicolons when using <code>fmt:
skip</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8273">#8273</a>)</li>
<li>Preserve trailing semicolons when using <code>fmt: off</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8275">#8275</a>)</li>
<li>Avoid duplicating linter-formatter compatibility warnings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8292">#8292</a>)</li>
<li>Avoid inserting a newline after function docstrings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8375">#8375</a>)</li>
<li>Insert newline between docstring and following own line comment (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8216">#8216</a>)</li>
<li>Split tuples in return positions by comma first (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8280">#8280</a>)</li>
<li>Avoid treating byte strings as docstrings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8350">#8350</a>)</li>
<li>Add <code>--line-length</code> option to <code>format</code> command
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8363">#8363</a>)</li>
<li>Avoid parenthesizing unsplittable because of comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8431">#8431</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Add <code>--output-format</code> to <code>ruff rule</code> and
<code>ruff linter</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8203">#8203</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Respect <code>--force-exclude</code> in <code>lint.exclude</code>
and <code>format.exclude</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8393">#8393</a>)</li>
<li>Respect <code>--extend-per-file-ignores</code> on the CLI (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8329">#8329</a>)</li>
<li>Extend <code>bad-dunder-method-name</code> to permit
<code>__index__</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8300">#8300</a>)</li>
<li>Fix panic with 8 in octal escape (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8356">#8356</a>)</li>
<li>Avoid raising <code>D300</code> when both triple quote styles are
present (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8462">#8462</a>)</li>
<li>Consider unterminated f-strings in <code>FStringRanges</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8154">#8154</a>)</li>
<li>Avoid including literal <code>shell=True</code> for truthy,
non-<code>True</code> diagnostics (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8359">#8359</a>)</li>
<li>Avoid triggering single-element test for starred expressions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8433">#8433</a>)</li>
<li>Detect and ignore Jupyter automagics (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8398">#8398</a>)</li>
<li>Fix invalid E231 error with f-strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8369">#8369</a>)</li>
<li>Avoid triggering <code>NamedTuple</code> rewrite with starred
annotation (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8434">#8434</a>)</li>
<li>Avoid un-setting bracket flag in logical lines (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8380">#8380</a>)</li>
<li>Place 'r' prefix before 'f' for raw format strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8464">#8464</a>)</li>
<li>Remove trailing periods from NumPy 2.0 code actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8475">#8475</a>)</li>
<li>Fix bug where <code>PLE1307</code> was raised when formatting
<code>%c</code> with characters (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8407">#8407</a>)</li>
<li>Remove unicode flag from comparable (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8440">#8440</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.4</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-trio</code>] Implement
<code>timeout-without-await</code> (<code>TRIO001</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8439">#8439</a>)</li>
<li>[<code>numpy</code>] Implement NumPy 2.0 migration rule
(<code>NPY200</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7702">#7702</a>)</li>
<li>[<code>pylint</code>] Implement <code>bad-open-mode</code>
(<code>W1501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8294">#8294</a>)</li>
<li>[<code>pylint</code>] Implement <code>import-outside-toplevel</code>
(<code>C0415</code>) rule (<a
href="https://redirect.github.com/astral-sh/ruff/pull/5180">#5180</a>)</li>
<li>[<code>pylint</code>] Implement <code>useless-with-lock</code>
(<code>W2101</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8321">#8321</a>)</li>
<li>[<code>pyupgrade</code>] Implement <code>timeout-error-alias</code>
(<code>UP041</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8476">#8476</a>)</li>
<li>[<code>refurb</code>] Implement <code>isinstance-type-none</code>
(<code>FURB168</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8308">#8308</a>)</li>
<li>Detect confusable Unicode-to-Unicode units in <code>RUF001</code>,
<code>RUF002</code>, and <code>RUF003</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/4430">#4430</a>)</li>
<li>Add newline after module docstrings in preview style (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8283">#8283</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>Add a note on line-too-long to the formatter docs (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8314">#8314</a>)</li>
<li>Preserve trailing statement semicolons when using <code>fmt:
skip</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8273">#8273</a>)</li>
<li>Preserve trailing semicolons when using <code>fmt: off</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8275">#8275</a>)</li>
<li>Avoid duplicating linter-formatter compatibility warnings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8292">#8292</a>)</li>
<li>Avoid inserting a newline after function docstrings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8375">#8375</a>)</li>
<li>Insert newline between docstring and following own line comment (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8216">#8216</a>)</li>
<li>Split tuples in return positions by comma first (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8280">#8280</a>)</li>
<li>Avoid treating byte strings as docstrings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8350">#8350</a>)</li>
<li>Add <code>--line-length</code> option to <code>format</code> command
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8363">#8363</a>)</li>
<li>Avoid parenthesizing unsplittable because of comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8431">#8431</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Add <code>--output-format</code> to <code>ruff rule</code> and
<code>ruff linter</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8203">#8203</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Respect <code>--force-exclude</code> in <code>lint.exclude</code>
and <code>format.exclude</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8393">#8393</a>)</li>
<li>Respect <code>--extend-per-file-ignores</code> on the CLI (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8329">#8329</a>)</li>
<li>Extend <code>bad-dunder-method-name</code> to permit
<code>__index__</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8300">#8300</a>)</li>
<li>Fix panic with 8 in octal escape (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8356">#8356</a>)</li>
<li>Avoid raising <code>D300</code> when both triple quote styles are
present (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8462">#8462</a>)</li>
<li>Consider unterminated f-strings in <code>FStringRanges</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8154">#8154</a>)</li>
<li>Avoid including literal <code>shell=True</code> for truthy,
non-<code>True</code> diagnostics (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8359">#8359</a>)</li>
<li>Avoid triggering single-element test for starred expressions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8433">#8433</a>)</li>
<li>Detect and ignore Jupyter automagics (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8398">#8398</a>)</li>
<li>Fix invalid E231 error with f-strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8369">#8369</a>)</li>
<li>Avoid triggering <code>NamedTuple</code> rewrite with starred
annotation (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8434">#8434</a>)</li>
<li>Avoid un-setting bracket flag in logical lines (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8380">#8380</a>)</li>
<li>Place 'r' prefix before 'f' for raw format strings (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8464">#8464</a>)</li>
<li>Remove trailing periods from NumPy 2.0 code actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8475">#8475</a>)</li>
<li>Fix bug where <code>PLE1307</code> was raised when formatting
<code>%c</code> with characters (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8407">#8407</a>)</li>
<li>Remove unicode flag from comparable (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8440">#8440</a>)</li>
<li>Improve B015 message (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8295">#8295</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c4889196e7"><code>c488919</code></a>
Add missing pyupgrade entry to changelog (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8479">#8479</a>)</li>
<li><a
href="6e635e99f4"><code>6e635e9</code></a>
Add changelog for v0.1.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8478">#8478</a>)</li>
<li><a
href="260ea41975"><code>260ea41</code></a>
Bump version to v0.1.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8477">#8477</a>)</li>
<li><a
href="65effc6666"><code>65effc6</code></a>
Add pyupgrade <code>UP041</code> to replace <code>TimeoutError</code>
aliases (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8476">#8476</a>)</li>
<li><a
href="4982694b54"><code>4982694</code></a>
<code>D300</code>: prevent autofix when both triples are in body (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8462">#8462</a>)</li>
<li><a
href="536ac550ed"><code>536ac55</code></a>
Remove trailing periods from NumPy 2.0 code actions (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8475">#8475</a>)</li>
<li><a
href="f2335fe692"><code>f2335fe</code></a>
Make Unicode-to-Unicode confusables a preview change (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8473">#8473</a>)</li>
<li><a
href="b0f9a14d9a"><code>b0f9a14</code></a>
Mark <code>byte_bounds</code> as a non-backwards-compatible NumPy 2.0
change (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8474">#8474</a>)</li>
<li><a
href="f56bc1983b"><code>f56bc19</code></a>
Place 'r' prefix before 'f' for raw format strings (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8464">#8464</a>)</li>
<li><a
href="7c12eaf322"><code>7c12eaf</code></a>
Use characters instead of <code>u32</code> in confusable map (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8463">#8463</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.1.3...v0.1.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.1.3&new-version=0.1.4)](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>
2023-11-06 18:53:07 +01:00
2023-10-21 10:58:54 +02:00
2023-10-20 16:36:54 +02:00

aki_prj23_transparenzregister

python Actions status Ruff pre-commit Checked with mypy Documentation Status Code style: black

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
No description provided
Readme 138 MiB
Languages
Jupyter Notebook 84.5%
HTML 12.1%
Python 3.3%