Skip to content

Commit 73e0a41

Browse files
committed
Add black config in pyproject.toml
1 parent aefcaee commit 73e0a41

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161
master_doc = "index"
6262

6363
# General information about the project.
64-
project = u"testinfra"
65-
copyright = u"{}, Philippe Pepiot".format(datetime.date.today().year)
64+
project = "testinfra"
65+
copyright = "{}, Philippe Pepiot".format(datetime.date.today().year)
6666

6767
# The version info for the project you're documenting, acts as replacement for
6868
# |version| and |release|, also used in various other places throughout the

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.black]
2+
target-version = ['py36']
3+
include = '\.pyi?$'
4+
exclude = '''
5+
(
6+
/(
7+
\.git
8+
| \.tox
9+
| \.eggs
10+
| build
11+
| dist
12+
)/
13+
)
14+
'''

testinfra/backend/ansible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
ssh_identity_file=None,
3232
force_ansible=False,
3333
*args,
34-
**kwargs
34+
**kwargs,
3535
):
3636
self.host = host
3737
self.ansible_inventory = ansible_inventory

testinfra/backend/paramiko.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
ssh_identity_file=None,
4646
timeout=10,
4747
*args,
48-
**kwargs
48+
**kwargs,
4949
):
5050
self.host = self.parse_hostspec(hostspec)
5151
self.ssh_config = ssh_config

testinfra/backend/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(
2929
controlpersist=60,
3030
ssh_extra_args=None,
3131
*args,
32-
**kwargs
32+
**kwargs,
3333
):
3434
self.host = self.parse_hostspec(hostspec)
3535
self.ssh_config = ssh_config

testinfra/backend/winrm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
read_timeout_sec=None,
5656
operation_timeout_sec=None,
5757
*args,
58-
**kwargs
58+
**kwargs,
5959
):
6060
self.host = self.parse_hostspec(hostspec)
6161
self.conn_args = {

0 commit comments

Comments
 (0)