Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Nov 15, 2023
1 parent 469bd5a commit 96b7510
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,3 @@ repos:
pass_filenames: true
types:
- python

- id: pydocstyle
name: pydocstyle
entry: pydocstyle
exclude: ^$
files: "containers_sugar/"
language: system
pass_filenames: true
types:
- python
1 change: 1 addition & 0 deletions containers_sugar/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import argparse
import os
import sys

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions containers_sugar/logs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Logs classes and function for containers-sugar system."""
import os

from enum import Enum

from colorama import Fore
Expand Down
6 changes: 4 additions & 2 deletions containers_sugar/sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
import io
import os
import sys

from copy import deepcopy
from pathlib import Path
from typing import Dict, List, Optional, Type

import dotenv
import sh
import yaml # type: ignore

from jinja2 import Template

from containers_sugar import __version__
Expand Down Expand Up @@ -159,8 +161,8 @@ def _load_config(self):
with open(self.config_file, 'r') as f:
# escape template tags
content = escape_template_tag(f.read())
f = io.StringIO(content)
self.config = yaml.safe_load(f)
f_content = io.StringIO(content)
self.config = yaml.safe_load(f_content)

def _load_compose_app(self):
compose_cmd = self.config.get('compose-app', '')
Expand Down

0 comments on commit 96b7510

Please sign in to comment.