Skip to content

Commit c049ee4

Browse files
committed
lint: ignore flake8 line too long for ignored types
Adding a `# type: ignore` comment to a couple of places triggered flake8's line too long check. Running `make reformat` did nothing for these - black has outstanding design issues with line length and comments. See psf/black#1713 for one example. Instead of changing the line structure to accommodate, ignore these two cases, at least until the types can be fixed and the comments removed. Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 2aaeb9a commit c049ee4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

warehouse/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ def warehouse(ctx):
4343

4444
# We want to automatically import all of the warehouse.cli.* modules so that
4545
# any commands registered in any of them will be discovered.
46-
for _, name, _ in pkgutil.walk_packages(__path__, prefix=__name__ + "."): # type: ignore
46+
for _, name, _ in pkgutil.walk_packages(__path__, prefix=__name__ + "."): # type: ignore # noqa
4747
importlib.import_module(name)

warehouse/packaging/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class Project(SitemapMixin, TwoFactorRequireable, db.Model):
173173

174174
total_size = Column(BigInteger, server_default=sql.text("0"))
175175

176-
users = orm.relationship(User, secondary=Role.__table__, backref="projects") # type: ignore
176+
users = orm.relationship(User, secondary=Role.__table__, backref="projects") # type: ignore # noqa
177177

178178
releases = orm.relationship(
179179
"Release",

0 commit comments

Comments
 (0)