File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 name : Build and publish Python distributions to PyPI
1111 runs-on : ubuntu-18.04
1212 steps :
13- - uses : actions/checkout@master
13+ - uses : actions/checkout@v3
1414 - name : Set up Python 3.9
15- uses : actions/setup-python@v1
15+ uses : actions/setup-python@v4
1616 with :
1717 python-version : 3.9
1818 - name : Install pypa/build
3131 .
3232 - name : Publish distribution to PyPI
3333 if : startsWith(github.ref, 'refs/tags')
34- uses : pypa/gh-action-pypi-publish@master
34+ uses : pypa/gh-action-pypi-publish@release/v1
3535 with :
3636 password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ def __call__(
116116
117117
118118class AutotypeCommand (VisitorBasedCodemodCommand ):
119-
120119 # Add a description so that future codemodders can see what this does.
121120 DESCRIPTION : str = "Automatically adds simple type annotations."
122121 METADATA_DEPENDENCIES = (PositionProvider ,)
@@ -166,7 +165,7 @@ def add_args(arg_parser: argparse.ArgumentParser) -> None:
166165 "--int-param" ,
167166 action = "store_true" ,
168167 default = False ,
169- help = ( "Automatically add int annotation to parameters with an int default" ) ,
168+ help = "Automatically add int annotation to parameters with an int default" ,
170169 )
171170 arg_parser .add_argument (
172171 "--float-param" ,
@@ -180,7 +179,7 @@ def add_args(arg_parser: argparse.ArgumentParser) -> None:
180179 "--str-param" ,
181180 action = "store_true" ,
182181 default = False ,
183- help = ( "Automatically add str annotation to parameters with a str default" ) ,
182+ help = "Automatically add str annotation to parameters with a str default" ,
184183 )
185184 arg_parser .add_argument (
186185 "--bytes-param" ,
@@ -201,8 +200,8 @@ def add_args(arg_parser: argparse.ArgumentParser) -> None:
201200 action = "store_true" ,
202201 default = False ,
203202 help = (
204- "Add annotations to magic methods that are less precise (e.g., Iterable "
205- "for __iter__)"
203+ "Add annotations to magic methods that are less precise (e.g., Iterable"
204+ " for __iter__)"
206205 ),
207206 )
208207 arg_parser .add_argument (
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ exclude = '''
99 | \.venv
1010)/
1111'''
12+ preview = true
13+ skip_magic_trailing_comma = true
1214
1315[build-system ]
1416requires = [
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ commands =
1111
1212[testenv:black]
1313deps =
14- black == 22.6 .0
14+ black == 22.8 .0
1515commands =
1616 black --check .
1717
You can’t perform that action at this time.
0 commit comments