dependabot[bot] aca6648997 build(deps-dev): bump ruff from 0.1.0 to 0.1.1 (#259)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.0 to 0.1.1.
<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.1</h2>
<h2>Changes</h2>
<h3>Rule changes</h3>
<ul>
<li>Add unsafe fix for <code>escape-sequence-in-docstring</code>
(<code>D301</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7970">#7970</a>)</li>
</ul>
<h3>Configuration</h3>
<ul>
<li>Respect <code>#(deprecated)</code> attribute in configuration
options (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8035">#8035</a>)</li>
<li>Add <code>[format|lint].exclude</code> options (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8000">#8000</a>)</li>
<li>Respect <code>tab-size</code> setting in formatter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8006">#8006</a>)</li>
<li>Add <code>lint.preview</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8002">#8002</a>)</li>
</ul>
<h3>Preview features</h3>
<ul>
<li>[<code>pylint</code>] Implement <code>literal-membership</code>
(<code>PLR6201</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7973">#7973</a>)</li>
<li>[<code>pylint</code>] Implement
<code>too-many-boolean-expressions</code> (<code>PLR0916</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7975">#7975</a>)</li>
<li>[<code>pylint</code>] Implement <code>misplaced-bare-raise</code>
(<code>E0704</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7961">#7961</a>)</li>
<li>[<code>pylint</code>] Implement <code>global-at-module-level</code>
(<code>W0604</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8058">#8058</a>)</li>
<li>[<code>pylint</code>] Implement <code>unspecified-encoding</code>
(<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7939">#7939</a>)</li>
<li>Add fix for <code>triple-single-quotes</code> (<code>D300</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/7967">#7967</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>New code style badge for <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7878">#7878</a>)</li>
<li>Fix comments outside expression parentheses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7873">#7873</a>)</li>
<li>Add <code>--target-version</code> to <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8055">#8055</a>)</li>
<li>Skip over parentheses when detecting <code>in</code> keyword (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8054">#8054</a>)</li>
<li>Add <code>--diff</code> option to <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7937">#7937</a>)</li>
<li>Insert newline after nested function or class statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7946">#7946</a>)</li>
<li>Use <code>pass</code> over ellipsis in non-function/class contexts
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8049">#8049</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Lazily evaluate all PEP 695 type alias values (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8033">#8033</a>)</li>
<li>Avoid failed assertion when showing fixes from stdin (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8029">#8029</a>)</li>
<li>Avoid flagging HTTP and HTTPS literals in urllib-open (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8046">#8046</a>)</li>
<li>Avoid flagging <code>bad-dunder-method-name</code> for
<code>_</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8015">#8015</a>)</li>
<li>Remove Python 2-only methods from <code>URLOpen</code> audit (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8047">#8047</a>)</li>
<li>Use set bracket replacement for <code>iteration-over-set</code> to
preserve whitespace and comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8001">#8001</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Update tutorial to match revised Ruff defaults (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8066">#8066</a>)</li>
<li>Update rule <code>B005</code> docs (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8028">#8028</a>)</li>
<li>Update GitHub actions example in docs to use
<code>--output-format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8014">#8014</a>)</li>
<li>Document <code>lint.preview</code> and <code>format.preview</code>
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8032">#8032</a>)</li>
<li>Clarify that new rules should be added to
<code>RuleGroup::Preview</code>. (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7989">#7989</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.1</h2>
<h3>Rule changes</h3>
<ul>
<li>Add unsafe fix for <code>escape-sequence-in-docstring</code>
(<code>D301</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7970">#7970</a>)</li>
</ul>
<h3>Configuration</h3>
<ul>
<li>Respect <code>#(deprecated)</code> attribute in configuration
options (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8035">#8035</a>)</li>
<li>Add <code>[format|lint].exclude</code> options (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8000">#8000</a>)</li>
<li>Respect <code>tab-size</code> setting in formatter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8006">#8006</a>)</li>
<li>Add <code>lint.preview</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8002">#8002</a>)</li>
</ul>
<h3>Preview features</h3>
<ul>
<li>[<code>pylint</code>] Implement <code>literal-membership</code>
(<code>PLR6201</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7973">#7973</a>)</li>
<li>[<code>pylint</code>] Implement
<code>too-many-boolean-expressions</code> (<code>PLR0916</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7975">#7975</a>)</li>
<li>[<code>pylint</code>] Implement <code>misplaced-bare-raise</code>
(<code>E0704</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7961">#7961</a>)</li>
<li>[<code>pylint</code>] Implement <code>global-at-module-level</code>
(<code>W0604</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8058">#8058</a>)</li>
<li>[<code>pylint</code>] Implement <code>unspecified-encoding</code>
(<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7939">#7939</a>)</li>
<li>Add fix for <code>triple-single-quotes</code> (<code>D300</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/7967">#7967</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>New code style badge for <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7878">#7878</a>)</li>
<li>Fix comments outside expression parentheses (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7873">#7873</a>)</li>
<li>Add <code>--target-version</code> to <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8055">#8055</a>)</li>
<li>Skip over parentheses when detecting <code>in</code> keyword (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8054">#8054</a>)</li>
<li>Add <code>--diff</code> option to <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7937">#7937</a>)</li>
<li>Insert newline after nested function or class statements (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7946">#7946</a>)</li>
<li>Use <code>pass</code> over ellipsis in non-function/class contexts
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8049">#8049</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Lazily evaluate all PEP 695 type alias values (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8033">#8033</a>)</li>
<li>Avoid failed assertion when showing fixes from stdin (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8029">#8029</a>)</li>
<li>Avoid flagging HTTP and HTTPS literals in urllib-open (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8046">#8046</a>)</li>
<li>Avoid flagging <code>bad-dunder-method-name</code> for
<code>_</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8015">#8015</a>)</li>
<li>Remove Python 2-only methods from <code>URLOpen</code> audit (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8047">#8047</a>)</li>
<li>Use set bracket replacement for <code>iteration-over-set</code> to
preserve whitespace and comments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8001">#8001</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Update tutorial to match revised Ruff defaults (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8066">#8066</a>)</li>
<li>Update rule <code>B005</code> docs (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8028">#8028</a>)</li>
<li>Update GitHub actions example in docs to use
<code>--output-format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/8014">#8014</a>)</li>
<li>Document <code>lint.preview</code> and <code>format.preview</code>
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/8032">#8032</a>)</li>
<li>Clarify that new rules should be added to
<code>RuleGroup::Preview</code>. (<a
href="https://redirect.github.com/astral-sh/ruff/pull/7989">#7989</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="22cf451d51"><code>22cf451</code></a>
Release 0.1.1 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8073">#8073</a>)</li>
<li><a
href="ec1be60dcb"><code>ec1be60</code></a>
Remove leftover constant tuple reference (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8062">#8062</a>)</li>
<li><a
href="a327b4da87"><code>a327b4d</code></a>
sequence -&gt; iterable in tutorial (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8067">#8067</a>)</li>
<li><a
href="cdc5e2fb58"><code>cdc5e2f</code></a>
Update tutorial to match revised Ruff defaults (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8066">#8066</a>)</li>
<li><a
href="b5d3caf033"><code>b5d3caf</code></a>
chore: add code style badge for <code>ruff format</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7878">#7878</a>)</li>
<li><a
href="8f9753f58e"><code>8f9753f</code></a>
Comments outside expression parentheses (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7873">#7873</a>)</li>
<li><a
href="67b043482a"><code>67b0434</code></a>
Use <code>pass</code> over ellipsis in non-function/class contexts (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8049">#8049</a>)</li>
<li><a
href="693f957b90"><code>693f957</code></a>
[pylint] - implement <code>global-at-module-level</code>
(<code>W0604</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8058">#8058</a>)</li>
<li><a
href="a85ed309ea"><code>a85ed30</code></a>
Respect <code>#(deprecated)</code> attribute in configuration options
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/8035">#8035</a>)</li>
<li><a
href="2e225d7538"><code>2e225d7</code></a>
Accept <code>--target-version</code> in the format CLI (<a
href="https://redirect.github.com/astral-sh/ruff/issues/8055">#8055</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.1.0...v0.1.1">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.0&new-version=0.1.1)](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>
2023-10-23 15:46:19 +00:00
2023-10-16 19:54:24 +02: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%