Skip to content

Commit 0321e7c

Browse files
authored
Merge pull request #1130 from sigmavirus24/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents ead7c92 + 09ec906 commit 0321e7c

File tree

8 files changed

+4
-9
lines changed

8 files changed

+4
-9
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: reorder-python-imports
2020
args: [--application-directories, '.:src', --py37-plus]
2121
- repo: https://github.com/psf/black
22-
rev: 22.12.0
22+
rev: 23.1.0
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/asottile/pyupgrade

src/github3/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _repr(self):
136136
def _remove_none(data):
137137
if not data:
138138
return
139-
for (k, v) in list(data.items()):
139+
for k, v in list(data.items()):
140140
if v is None:
141141
del data[k]
142142

src/github3/repos/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ def milestones(
22762276
"direction": ("asc", "desc"),
22772277
}
22782278
params = {"state": state, "sort": sort, "direction": direction}
2279-
for (k, v) in list(params.items()):
2279+
for k, v in list(params.items()):
22802280
if not (v and (v in accepted[k])): # e.g., '' or None
22812281
del params[k]
22822282
if not params:

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def enterprise_url(request):
4545

4646

4747
class IfNoneMatchMatcher(betamax.BaseMatcher):
48-
4948
name = "if-none-match"
5049

5150
def match(self, request, recorded_request):

tests/integration/test_repos_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def test_directory_contents(self):
602602
repository = self.gh.repository("sigmavirus24", "github3.py")
603603
contents = repository.directory_contents("github3/search/")
604604

605-
for (filename, content) in contents:
605+
for filename, content in contents:
606606
assert content.name == filename
607607
assert isinstance(content, github3.repos.contents.Contents)
608608

tests/unit/test_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222

2323
class TestEvent(UnitHelper):
24-
2524
described_class = github3.events.Event
2625
example_data = get_example_data()
2726

tests/unit/test_github.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,6 @@ def test_revoke_authorizations(self):
15791579

15801580

15811581
class TestGitHubEnterprise(helper.UnitGitHubEnterpriseHelper):
1582-
15831582
described_class = GitHubEnterprise
15841583

15851584
def test_admin_stats(self):

tests/unit/test_models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def test_str(self):
5252

5353

5454
class TestGitHubCore(helper.UnitHelper):
55-
5655
described_class = MyTestRefreshClass
5756
last_modified = datetime.now().strftime("%a, %d %b %Y %H:%M:%S GMT")
5857
url = "https://api.github.com/foo"
@@ -216,7 +215,6 @@ def test_can_be_copied(self):
216215

217216

218217
class TestGitHubCoreIssue672(helper.UnitHelper):
219-
220218
described_class = MyTestRefreshClass
221219
last_modified = datetime.now().strftime("%a, %d %b %Y %H:%M:%S GMT")
222220
url = "https://api.github.com/foo?bar=1"

0 commit comments

Comments
 (0)