Merge pull request #1317 from tahoe-lafs/4050-upgrade-dependencies

Upgrade some linting dependencies

Fixes: ticket:4050
This commit is contained in:
Jean-Paul Calderone 2023-07-24 10:29:20 -04:00 committed by GitHub
commit e9f68824a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 12 deletions

0
newsfragments/4050.minor Normal file
View File

View File

@ -28,7 +28,7 @@ from allmydata.grid_manager import (
from allmydata.util import jsonbytes as json
@click.group() # type: ignore[arg-type]
@click.group()
@click.option(
'--config', '-c',
type=click.Path(),
@ -71,7 +71,7 @@ def grid_manager(ctx, config):
ctx.obj = Config()
@grid_manager.command() # type: ignore[attr-defined]
@grid_manager.command()
@click.pass_context
def create(ctx):
"""
@ -91,7 +91,7 @@ def create(ctx):
)
@grid_manager.command() # type: ignore[attr-defined]
@grid_manager.command()
@click.pass_obj
def public_identity(config):
"""
@ -103,7 +103,7 @@ def public_identity(config):
click.echo(config.grid_manager.public_identity())
@grid_manager.command() # type: ignore[arg-type, attr-defined]
@grid_manager.command()
@click.argument("name")
@click.argument("public_key", type=click.STRING)
@click.pass_context
@ -132,7 +132,7 @@ def add(ctx, name, public_key):
return 0
@grid_manager.command() # type: ignore[arg-type, attr-defined]
@grid_manager.command()
@click.argument("name")
@click.pass_context
def remove(ctx, name):
@ -155,8 +155,7 @@ def remove(ctx, name):
save_grid_manager(fp, ctx.obj.grid_manager, create=False)
@grid_manager.command() # type: ignore[attr-defined]
# noqa: F811
@grid_manager.command() # noqa: F811
@click.pass_context
def list(ctx):
"""
@ -176,7 +175,7 @@ def list(ctx):
click.echo("expired {} ({})".format(cert.expires, abbreviate_time(delta)))
@grid_manager.command() # type: ignore[arg-type, attr-defined]
@grid_manager.command()
@click.argument("name")
@click.argument(
"expiry_days",

View File

@ -99,7 +99,7 @@ skip_install = true
deps =
# Pin a specific version so we get consistent outcomes; update this
# occasionally:
ruff == 0.0.263
ruff == 0.0.278
# towncrier doesn't work with importlib_resources 6.0.0
# https://github.com/twisted/towncrier/issues/528
importlib_resources < 6.0.0
@ -125,9 +125,8 @@ commands =
[testenv:typechecks]
basepython = python3
deps =
mypy==1.3.0
# When 0.9.2 comes out it will work with 1.3, it's just unreleased at the moment...
git+https://github.com/shoobx/mypy-zope@f276030
mypy==1.4.1
mypy-zope
types-mock
types-six
types-PyYAML