Skip to content

Commit

Permalink
#119: Add flake8 file ignore due to DB backend camelCase attribute n…
Browse files Browse the repository at this point in the history
…ames
  • Loading branch information
MRichards99 committed Jan 25, 2021
1 parent 382de45 commit edba864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ max-complexity = 17
max-line-length = 80
application-import-names = datagateway_api,test,util
import-order-style = google
per-file-ignores = test/*:S101,util/icat_db_generator.py:S311
per-file-ignores =
test/*: S101
util/icat_db_generator.py: S311
datagateway_api/common/database/models.py: N815,A003
enable-extensions=G
1 change: 0 additions & 1 deletion datagateway_api/common/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ class APPLICATION(Base, EntityHelper, metaclass=EntityMeta):
__tablename__ = "APPLICATION"
__table_args__ = (Index("UNQ_APPLICATION_0", "FACILITY_ID", "NAME", "VERSION"),)

# TODO - Disable N815 on this file, document why this is (comment in .flake8?)
id = Column("ID", BigInteger, primary_key=True)
createId = Column("CREATE_ID", String(255), nullable=False)
createTime = Column("CREATE_TIME", DateTime, nullable=False)
Expand Down

0 comments on commit edba864

Please sign in to comment.