Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1799ea

Browse files
Upgrade some dependencies, preview Black style (#39)
1 parent 96db583 commit d1799ea

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
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
@@ -31,6 +31,6 @@ jobs:
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 }}

autotyping/autotyping.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def __call__(
116116

117117

118118
class 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(

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ exclude = '''
99
| \.venv
1010
)/
1111
'''
12+
preview = true
13+
skip_magic_trailing_comma = true
1214

1315
[build-system]
1416
requires = [

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ commands =
1111

1212
[testenv:black]
1313
deps =
14-
black == 22.6.0
14+
black == 22.8.0
1515
commands =
1616
black --check .
1717

0 commit comments

Comments
 (0)