Skip to content

Commit

Permalink
nmypy/flake 8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlongden committed Mar 21, 2023
1 parent 9d8b046 commit 19d0b70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def update_author_entity():
setattr(author_db_obj, key, value)
# print("will update key:" + key)
db_session.commit()
ref_db_obj = db_session.query(ReferenceModel).filter(ReferenceModel.reference_id == reference_id).first()
if ref_db_obj:
curie = ref_db_obj.curie
# update_citation(db_session, curie)
db_session.query(ReferenceModel).filter(ReferenceModel.reference_id == reference_id).first()
# if ref_db_obj:
# curie = ref_db_obj.curie
# update_citation(db_session, curie)
db_session.close()
except Exception as e:
print('Error: ' + str(type(e)))
Expand Down
2 changes: 1 addition & 1 deletion mypy.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[mypy]
ignore_missing_imports = True
plugins = sqlalchemy.ext.mypy.plugin

1 change: 0 additions & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ types-ujson
types-docutils
types-python-dateutil
types-retry
sqlalchemy[mypy]
alembic_utils
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ sqlalchemy_schemadisplay==1.3
git+https://github.com/alliance-genome/[email protected]#egg=fastapi_okta
requests

sqlalchemy[mypy]

# xml_processing
bs4==0.0.1

Expand Down

0 comments on commit 19d0b70

Please sign in to comment.