Format with black
This commit is contained in:
parent
e3ef1aec29
commit
c2a1a8dcc1
1 changed files with 6 additions and 6 deletions
12
noxfile.py
12
noxfile.py
|
@ -87,23 +87,23 @@ def fix_branch_references(_session):
|
||||||
{
|
{
|
||||||
"name": "github",
|
"name": "github",
|
||||||
"pattern": re.compile(
|
"pattern": re.compile(
|
||||||
fr"((((http)|(https))://github\.com/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)"
|
rf"((((http)|(https))://github\.com/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)"
|
||||||
),
|
),
|
||||||
"replacement": fr"\2{branch}/",
|
"replacement": rf"\2{branch}/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nbviewer",
|
"name": "nbviewer",
|
||||||
"pattern": re.compile(
|
"pattern": re.compile(
|
||||||
fr"((((http)|(https))://nbviewer\.jupyter\.org/github/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)",
|
rf"((((http)|(https))://nbviewer\.jupyter\.org/github/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)",
|
||||||
),
|
),
|
||||||
"replacement": fr"\2{branch}/",
|
"replacement": rf"\2{branch}/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "mybinder",
|
"name": "mybinder",
|
||||||
"pattern": re.compile(
|
"pattern": re.compile(
|
||||||
fr"((((http)|(https))://mybinder\.org/v2/gh/{REPOSITORY}/)([\w-]+)\?)",
|
rf"((((http)|(https))://mybinder\.org/v2/gh/{REPOSITORY}/)([\w-]+)\?)",
|
||||||
),
|
),
|
||||||
"replacement": fr"\2{branch}?",
|
"replacement": rf"\2{branch}?",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue