Skip to content

Commit

Permalink
Make Ruff lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed May 15, 2024
1 parent 706a842 commit c556ad1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lizmap_server/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def find_vector_layer(layer_name: str, project: QgsProject) -> Optional[QgsVecto
if not found.isValid():
Logger.warning(
f"The vector layer '{layer_name}' has been found but it is not valid in the project "
f"'{project.fileName()}'"
f"'{project.fileName()}'",
)
return found

Expand Down
2 changes: 1 addition & 1 deletion lizmap_server/get_legend_graphic.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def responseComplete(self):
if not layer.isValid():
logger.warning(
f"Layer '{layer_name}' is not valid, returning a warning icon in the legend for project "
f"'{project.homePath()}'"
f"'{project.homePath()}'",
)
json_data = {
'title': '',
Expand Down
1 change: 1 addition & 0 deletions test/test_filter_by_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
__license__ = 'GPL version 3'
__email__ = '[email protected]'


class TestFilterByPolygon(unittest.TestCase):

def test_not_filtered_layer(self):
Expand Down

0 comments on commit c556ad1

Please sign in to comment.