Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 21, 2024
1 parent cd11d52 commit ec33574
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jaraco/develop/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def apply(self, url):
return url.replace(self.value, self.prefix)

@classmethod
@functools.lru_cache()
@functools.lru_cache
def load(cls):
cmd = ['git', 'config', '--get-regexp', r'url\..*\.insteadof']
lines = subprocess.run(
Expand Down Expand Up @@ -206,7 +206,7 @@ def checkout(project: Project, target: path.Path = path.Path(), **kwargs):
return repo


@functools.lru_cache()
@functools.lru_cache
def _session():
"""
Return a requests session capable of opening files.
Expand Down
4 changes: 2 additions & 2 deletions jaraco/develop/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, name):
self.session = self.get_session()

@classmethod
@functools.lru_cache()
@functools.lru_cache
def get_session(cls):
session = sessions.BaseUrlSession('https://api.github.com/repos/')
session.headers.update(
Expand All @@ -45,7 +45,7 @@ def load_token():
def detect(cls):
return cls(repo.get_project_metadata().project)

@functools.lru_cache()
@functools.lru_cache
def get_public_key(self):
data = self.session.get(f'{self}/actions/secrets/public-key').json()
key = Key(data['key'])
Expand Down
2 changes: 1 addition & 1 deletion jaraco/develop/macos-build-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import autocommand


@functools.lru_cache()
@functools.lru_cache
def brew_prefix(name=None):
cmd = ['brew', '--prefix']
if name:
Expand Down
2 changes: 1 addition & 1 deletion jaraco/develop/rtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url = 'https://readthedocs.org/'


@functools.lru_cache()
@functools.lru_cache
def session():
auth = 'Token ' + keyring.get_password(url, 'token')
session = sessions.BaseUrlSession(url + 'api/v3/')
Expand Down

0 comments on commit ec33574

Please sign in to comment.