mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-14 10:28:46 +02:00
General updates & linting (#218)
This commit is contained in:
parent
6365e252b9
commit
c0d42a22d7
@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
rev: v4.5.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
exclude: (.txt$|.ipynb$)
|
||||
@ -43,7 +43,7 @@ repos:
|
||||
|
||||
|
||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||
rev: v2.10.0
|
||||
rev: v2.11.0
|
||||
hooks:
|
||||
- id: pretty-format-ini
|
||||
args: [--autofix]
|
||||
@ -55,7 +55,7 @@ repos:
|
||||
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.5.1
|
||||
rev: v1.6.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
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"]}
|
||||
black = "^23.9.1"
|
||||
loguru-mypy = "^0.0.4"
|
||||
mypy = "^1.5.1"
|
||||
mypy = "^1.6.0"
|
||||
pandas-stubs = "^2.0.3.230814"
|
||||
pip-audit = "^2.6.1"
|
||||
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 = (
|
||||
session.query(entities.AnnualFinanceStatement)
|
||||
.filter(entities.AnnualFinanceStatement.company_id == company_id)
|
||||
.filter(entities.AnnualFinanceStatement.company_id == company_id) # type: ignore
|
||||
.all()
|
||||
)
|
||||
|
||||
|
@ -184,7 +184,9 @@ def get_person_id(
|
||||
) is not None:
|
||||
return person_id
|
||||
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
|
||||
)
|
||||
db.add(person)
|
||||
|
Loading…
x
Reference in New Issue
Block a user