github-actions[bot] 6781453ee1
build(deps-dev): bump mypy from 1.7.1 to 1.8.0 (#480)
Bumps [mypy](https://github.com/python/mypy) from 1.7.1 to 1.8.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's
changelog</a>.</em></p>
<blockquote>
<h1>Mypy Release Notes</h1>
<h2>Next release</h2>
<h2>Mypy 1.8</h2>
<p>We’ve just uploaded mypy 1.8 to the Python Package Index (<a
href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type
checker for Python. This release includes new features, performance
improvements and bug fixes. You can install it as follows:</p>
<pre><code>python3 -m pip install -U mypy
</code></pre>
<p>You can read the full documentation for this release on <a
href="http://mypy.readthedocs.io">Read the Docs</a>.</p>
<h4>Type-checking Improvements</h4>
<ul>
<li>Do not intersect types in isinstance checks if at least one is final
(Christoph Tyralla, PR <a
href="https://redirect.github.com/python/mypy/pull/16330">16330</a>)</li>
<li>Detect that <code>@final</code> class without <code>__bool__</code>
cannot have falsey instances (Ilya Priven, PR <a
href="https://redirect.github.com/python/mypy/pull/16566">16566</a>)</li>
<li>Do not allow <code>TypedDict</code> classes with extra keywords
(Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16438">16438</a>)</li>
<li>Do not allow class-level keywords for <code>NamedTuple</code>
(Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16526">16526</a>)</li>
<li>Make imprecise constraints handling more robust (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16502">16502</a>)</li>
<li>Fix strict-optional in extending generic TypedDict (Ivan Levkivskyi,
PR <a
href="https://redirect.github.com/python/mypy/pull/16398">16398</a>)</li>
<li>Allow type ignores of PEP 695 constructs (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16608">16608</a>)</li>
<li>Enable <code>type_check_only</code> support for
<code>TypedDict</code> and <code>NamedTuple</code> (Nikita Sobolev, PR
<a
href="https://redirect.github.com/python/mypy/pull/16469">16469</a>)</li>
</ul>
<h4>Performance Improvements</h4>
<ul>
<li>Add fast path to analyzing special form assignments (Jukka
Lehtosalo, PR <a
href="https://redirect.github.com/python/mypy/pull/16561">16561</a>)</li>
</ul>
<h4>Improvements to Error Reporting</h4>
<ul>
<li>Don't show documentation links for plugin error codes (Ivan
Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16383">16383</a>)</li>
<li>Improve error messages for <code>super</code> checks and add more
tests (Nikita Sobolev, PR <a
href="https://redirect.github.com/python/mypy/pull/16393">16393</a>)</li>
<li>Add error code for mutable covariant override (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16399">16399</a>)</li>
</ul>
<h4>Stubgen Improvements</h4>
<ul>
<li>Preserve simple defaults in function signatures (Ali Hamdan, PR <a
href="https://redirect.github.com/python/mypy/pull/15355">15355</a>)</li>
<li>Include <code>__all__</code> in output (Jelle Zijlstra, PR <a
href="https://redirect.github.com/python/mypy/pull/16356">16356</a>)</li>
<li>Fix stubgen regressions with pybind11 and mypy 1.7 (Chad Dombrova,
PR <a
href="https://redirect.github.com/python/mypy/pull/16504">16504</a>)</li>
</ul>
<h4>Stubtest Improvements</h4>
<ul>
<li>Improve handling of unrepresentable defaults (Jelle Zijlstra, PR <a
href="https://redirect.github.com/python/mypy/pull/16433">16433</a>)</li>
<li>Print more helpful errors if a function is missing from stub (Alex
Waygood, PR <a
href="https://redirect.github.com/python/mypy/pull/16517">16517</a>)</li>
<li>Support <code>@type_check_only</code> decorator (Nikita Sobolev, PR
<a
href="https://redirect.github.com/python/mypy/pull/16422">16422</a>)</li>
<li>Warn about missing <code>__del__</code> (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16456">16456</a>)</li>
<li>Fix crashes with some uses of <code>final</code> and
<code>deprecated</code> (Shantanu, PR <a
href="https://redirect.github.com/python/mypy/pull/16457">16457</a>)</li>
</ul>
<h4>Fixes to Crashes</h4>
<ul>
<li>Fix crash with type alias to <code>Callable[[Unpack[Tuple[Any,
...]]], Any]</code> (Alex Waygood, PR <a
href="https://redirect.github.com/python/mypy/pull/16541">16541</a>)</li>
<li>Fix crash on TypeGuard in <code>__call__</code> (Ivan Levkivskyi, PR
<a
href="https://redirect.github.com/python/mypy/pull/16516">16516</a>)</li>
<li>Fix crash on invalid enum in method (Ivan Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16511">16511</a>)</li>
<li>Fix crash on unimported Any in TypedDict (Ivan Levkivskyi, PR <a
href="https://redirect.github.com/python/mypy/pull/16510">16510</a>)</li>
</ul>
<h4>Documentation Updates</h4>
<ul>
<li>Update soft-error-limit default value to -1 (Sveinung Gundersen, PR
<a
href="https://redirect.github.com/python/mypy/pull/16542">16542</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="3b467509ee"><code>3b46750</code></a>
remove +dev suffix from version</li>
<li><a
href="c9bc833bc8"><code>c9bc833</code></a>
Fix tests broken by hatchling (<a
href="https://redirect.github.com/python/mypy/issues/16655">#16655</a>)</li>
<li><a
href="60d30e36c4"><code>60d30e3</code></a>
Fix crash with type alias to <code>Callable[[Unpack[Tuple[Any, ...]]],
Any]</code> (<a
href="https://redirect.github.com/python/mypy/issues/16541">#16541</a>)</li>
<li><a
href="f53f4222bb"><code>f53f422</code></a>
Allow type ignores of PEP 695 constructs (<a
href="https://redirect.github.com/python/mypy/issues/16608">#16608</a>)</li>
<li><a
href="7c33e7c034"><code>7c33e7c</code></a>
<a href="https://github.com/final"><code>@​final</code></a> class
without <strong>bool</strong> cannot have falsey instances (<a
href="https://redirect.github.com/python/mypy/issues/16566">#16566</a>)</li>
<li><a
href="c224da5c7c"><code>c224da5</code></a>
Do not intersect types in isinstance checks if at least one is final (<a
href="https://redirect.github.com/python/mypy/issues/16330">#16330</a>)</li>
<li><a
href="d54cc35a93"><code>d54cc35</code></a>
Change example in test cases with no stubs available (<a
href="https://redirect.github.com/python/mypy/issues/16513">#16513</a>)</li>
<li><a
href="eb1ee97377"><code>eb1ee97</code></a>
Update hashes in <code>sync-typeshed.py</code> following recent typeshed
sync (<a
href="https://redirect.github.com/python/mypy/issues/16600">#16600</a>)</li>
<li><a
href="344298e3a7"><code>344298e</code></a>
Revert use of <code>ParamSpec</code> for
<code>functools.wraps</code></li>
<li><a
href="3e5d813372"><code>3e5d813</code></a>
Revert typeshed ctypes change</li>
<li>Additional commits viewable in <a
href="https://github.com/python/mypy/compare/v1.7.1...v1.8.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.7.1&new-version=1.8.0)](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-12-22 17:43:02 +01:00
2023-12-21 21:52:22 +01:00
2023-12-14 18:08:10 +01: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.
  • 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

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

PYTHON_INGEST_SCHEDULE=12 # Every x hours

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%