Skip to content

Commit

Permalink
Merge pull request #34 from acsone/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sbidoul authored Oct 12, 2022
2 parents 2fb3571 + 7cabb41 commit e2e6a01
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -16,7 +16,7 @@ repos:
- id: flake8
additional_dependencies: ["flake8-bugbear==21.4.3"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
rev: v3.1.0
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/seed-isort-config
Expand Down
2 changes: 0 additions & 2 deletions git_autoshare/clone.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright © 2017-2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

from __future__ import print_function

import subprocess
import sys
Expand Down
5 changes: 1 addition & 4 deletions git_autoshare/core.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright © 2017-2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

from __future__ import print_function

import os
import shutil
Expand Down Expand Up @@ -142,8 +140,7 @@ def autoshare_repositories():
host, orgs
)
)
for ar in find_wildcarded_repositories(host, orgs, private):
yield ar
yield from find_wildcarded_repositories(host, orgs, private)
else:
yield AutoshareRepository(host, orgs, repo, private)

Expand Down
7 changes: 3 additions & 4 deletions git_autoshare/giturlparse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright © 2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

Expand All @@ -19,7 +18,7 @@
]


class GitUrlBase(object):
class GitUrlBase:
__slots__ = ["valid", "host", "owner", "repo"]

def __init__(self, valid, host, owner, repo):
Expand All @@ -33,14 +32,14 @@ class GitUrl(GitUrlBase):
__slots__ = []

def __init__(self, host, owner, repo):
super(GitUrl, self).__init__(True, host, owner, repo)
super().__init__(True, host, owner, repo)


class InvalidGitUrl(GitUrlBase):
__slots__ = []

def __init__(self):
super(InvalidGitUrl, self).__init__(False, None, None, None)
super().__init__(False, None, None, None)


def parse(url):
Expand Down
2 changes: 0 additions & 2 deletions git_autoshare/prefetch.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright © 2017-2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

from __future__ import print_function

import sys

Expand Down
2 changes: 0 additions & 2 deletions git_autoshare/submodule.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright © 2018 Camptocamp SA
# Copyright © 2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

from __future__ import print_function

import os
import subprocess
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2017-2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

Expand Down
1 change: 0 additions & 1 deletion tests/test_git_autoshare.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright © 2017-2019 ACSONE SA/NV
# License GPLv3 (http://www.gnu.org/licenses/gpl-3.0-standalone.html)

Expand Down

0 comments on commit e2e6a01

Please sign in to comment.