Skip to content

Commit 1bdbb64

Browse files
committed
Fix linting issue
1 parent 0139c4b commit 1bdbb64

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pyfpga/project.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def set_part(self, name):
6060
:param name: FPGA part name
6161
:type name: str
6262
"""
63-
self.logger.debug(f'Executing set_part: {name}')
63+
self.logger.debug('Executing set_part: %s', name)
6464
self.data['part'] = name
6565

6666
def add_include(self, path):
@@ -72,7 +72,7 @@ def add_include(self, path):
7272
:type name: str
7373
:raises NotADirectoryError: if path is not a directory
7474
"""
75-
self.logger.debug(f'Executing add_include: {path}')
75+
self.logger.debug('Executing add_include: %s', path)
7676
path = Path(path).resolve()
7777
if not path.is_dir():
7878
raise NotADirectoryError(path)
@@ -98,7 +98,7 @@ def add_slog(self, pathname):
9898
:type pathname: str
9999
:raises FileNotFoundError: when pathname is not found
100100
"""
101-
self.logger.debug(f'Executing add_slog: {pathname}')
101+
self.logger.debug('Executing add_slog: %s', pathname)
102102
self._add_file(pathname, 'slog')
103103

104104
def add_vhdl(self, pathname, lib=None):
@@ -111,7 +111,7 @@ def add_vhdl(self, pathname, lib=None):
111111
:raises FileNotFoundError: when pathname is not found
112112
"""
113113
lib_str = 'default library' if lib is None else lib
114-
self.logger.debug(f'Executing add_vhdl: {lib_str} : {pathname}')
114+
self.logger.debug('Executing add_vhdl: %s : %s', lib_str, pathname)
115115
self._add_file(pathname, 'vhdl', lib)
116116

117117
def add_vlog(self, pathname):
@@ -121,7 +121,7 @@ def add_vlog(self, pathname):
121121
:type pathname: str
122122
:raises FileNotFoundError: when pathname is not found
123123
"""
124-
self.logger.debug(f'Executing add_vlog: {pathname}')
124+
self.logger.debug('Executing add_vlog: %s', pathname)
125125
self._add_file(pathname, 'vlog')
126126

127127
def add_cons(self, path):
@@ -131,7 +131,7 @@ def add_cons(self, path):
131131
:type pathname: str
132132
:raises FileNotFoundError: if path is not found
133133
"""
134-
self.logger.debug(f'Executing add_cons: {path}')
134+
self.logger.debug('Executing add_cons: %s', path)
135135
path = Path(path).resolve()
136136
if not path.is_file():
137137
raise FileNotFoundError(path)
@@ -146,7 +146,7 @@ def add_param(self, name, value):
146146
:param value: parameter/generic value
147147
:type name: str
148148
"""
149-
self.logger.debug(f'Executing add_param: {name} : {value}')
149+
self.logger.debug('Executing add_param: %s : %s', name, value)
150150
self.data.setdefault('params', {})[name] = value
151151

152152
def add_define(self, name, value):
@@ -157,7 +157,7 @@ def add_define(self, name, value):
157157
:param value: define value
158158
:type name: str
159159
"""
160-
self.logger.debug(f'Executing add_define: {name} : {value}')
160+
self.logger.debug('Executing add_define: %s : %s', name, value)
161161
self.data.setdefault('defines', {})[name] = value
162162

163163
def add_fileset(self, pathname):
@@ -167,7 +167,7 @@ def add_fileset(self, pathname):
167167
:type pathname: str
168168
:raises FileNotFoundError: when pathname is not found
169169
"""
170-
self.logger.debug(f'Executing add_fileset: {pathname}')
170+
self.logger.debug('Executing add_fileset: %s', pathname)
171171
if not os.path.exists(pathname):
172172
raise FileNotFoundError(pathname)
173173
raise NotImplementedError()
@@ -178,7 +178,7 @@ def set_top(self, name):
178178
:param name: top-level name
179179
:type name: str
180180
"""
181-
self.logger.debug(f'Executing set_top: {name}')
181+
self.logger.debug('Executing set_top: %s', name)
182182
self.data['top'] = name
183183

184184
def add_hook(self, stage, hook):
@@ -192,7 +192,7 @@ def add_hook(self, stage, hook):
192192
:type hook: str
193193
:raises ValueError: when stage is invalid
194194
"""
195-
self.logger.debug(f'Executing add_hook: {stage} : {hook}')
195+
self.logger.debug('Executing add_hook: %s : %s', stage, hook)
196196
stages = [
197197
'precfg', 'postcfg', 'presyn', 'postsyn',
198198
'prepar', 'postpar', 'prebit', 'postbit'

0 commit comments

Comments
 (0)