aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-07-31 16:37:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-07-31 16:37:43 +0300
commit5f95661b569dafcf64dce1e81f0643f1620dcf64 (patch)
tree6c0412a0fd9011f09fa9cfae104e8a29d520dcd6
parentcgitize.config: remove dead code (diff)
downloadcgitize-5f95661b569dafcf64dce1e81f0643f1620dcf64.tar.gz
cgitize-5f95661b569dafcf64dce1e81f0643f1620dcf64.zip
pylint fixes
-rw-r--r--cgitize/config.py9
-rw-r--r--cgitize/git.py2
-rw-r--r--cgitize/repo.py3
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