diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-07-31 16:37:43 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-07-31 16:37:43 +0300 |
commit | 5f95661b569dafcf64dce1e81f0643f1620dcf64 (patch) | |
tree | 6c0412a0fd9011f09fa9cfae104e8a29d520dcd6 | |
parent | cgitize.config: remove dead code (diff) | |
download | cgitize-5f95661b569dafcf64dce1e81f0643f1620dcf64.tar.gz cgitize-5f95661b569dafcf64dce1e81f0643f1620dcf64.zip |
pylint fixes
Diffstat (limited to '')
-rw-r--r-- | cgitize/config.py | 9 | ||||
-rw-r--r-- | cgitize/git.py | 2 | ||||
-rw-r--r-- | cgitize/repo.py | 3 |
3 files changed, 3 insertions, 11 deletions
diff --git a/cgitize/config.py b/cgitize/config.py index d8314fa..8a68906 100644 --- a/cgitize/config.py +++ b/cgitize/config.py @@ -3,18 +3,13 @@ # For details, see https://github.com/egor-tensin/cgitize. # Distributed under the MIT License. -import configparser -import importlib -import logging import os -import sys + +import tomli from cgitize.bitbucket import Bitbucket from cgitize.github import GitHub from cgitize.repo import Repo -from cgitize.utils import chdir - -import tomli class Section: diff --git a/cgitize/git.py b/cgitize/git.py index 5acac20..a32fd34 100644 --- a/cgitize/git.py +++ b/cgitize/git.py @@ -62,7 +62,7 @@ class Config: return name def format(self): - result = f'[self.format_name(self.name)]\n' + result = f'[{self.format_name(self.name)}]\n' result += ''.join((var.format() for var in self.variables)) return result diff --git a/cgitize/repo.py b/cgitize/repo.py index 4c91968..d224351 100644 --- a/cgitize/repo.py +++ b/cgitize/repo.py @@ -3,9 +3,6 @@ # For details, see https://github.com/egor-tensin/cgitize. # Distributed under the MIT License. -import abc -import os.path - from cgitize.utils import url_remove_auth, url_replace_auth |