mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-14 12:58:46 +02:00
General updates & linting (#218)
This commit is contained in:
parent
6365e252b9
commit
c0d42a22d7
@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.4.0
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: (.txt$|.ipynb$)
|
exclude: (.txt$|.ipynb$)
|
||||||
@ -43,7 +43,7 @@ repos:
|
|||||||
|
|
||||||
|
|
||||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
rev: v2.10.0
|
rev: v2.11.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pretty-format-ini
|
- id: pretty-format-ini
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
@ -55,7 +55,7 @@ repos:
|
|||||||
|
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.5.1
|
rev: v1.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
|
330
poetry.lock
generated
330
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -99,7 +99,7 @@ sphinxcontrib-napoleon = "^0.7"
|
|||||||
SQLAlchemy = {version = "^1.4.46", extras = ["mypy"]}
|
SQLAlchemy = {version = "^1.4.46", extras = ["mypy"]}
|
||||||
black = "^23.9.1"
|
black = "^23.9.1"
|
||||||
loguru-mypy = "^0.0.4"
|
loguru-mypy = "^0.0.4"
|
||||||
mypy = "^1.5.1"
|
mypy = "^1.6.0"
|
||||||
pandas-stubs = "^2.0.3.230814"
|
pandas-stubs = "^2.0.3.230814"
|
||||||
pip-audit = "^2.6.1"
|
pip-audit = "^2.6.1"
|
||||||
pip-licenses = "^4.3.2"
|
pip-licenses = "^4.3.2"
|
||||||
|
@ -76,7 +76,7 @@ def get_finance_data_of_one_company(session: Session, company_id: int) -> pd.Dat
|
|||||||
"""
|
"""
|
||||||
annual_finance_data = (
|
annual_finance_data = (
|
||||||
session.query(entities.AnnualFinanceStatement)
|
session.query(entities.AnnualFinanceStatement)
|
||||||
.filter(entities.AnnualFinanceStatement.company_id == company_id)
|
.filter(entities.AnnualFinanceStatement.company_id == company_id) # type: ignore
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -184,7 +184,9 @@ def get_person_id(
|
|||||||
) is not None:
|
) is not None:
|
||||||
return person_id
|
return person_id
|
||||||
person = entities.Person(
|
person = entities.Person(
|
||||||
firstname=firstname, lastname=lastname, date_of_birth=date_of_birth,
|
firstname=firstname,
|
||||||
|
lastname=lastname,
|
||||||
|
date_of_birth=date_of_birth,
|
||||||
**(location | get_geocodes(location.get("zip_code"))), # type: ignore
|
**(location | get_geocodes(location.get("zip_code"))), # type: ignore
|
||||||
)
|
)
|
||||||
db.add(person)
|
db.add(person)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user