Skip to content

Commit

Permalink
fix: [BUG] debug mode cannot disabled #86 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowentan committed Oct 27, 2022
1 parent eefec9b commit 99c2bfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glob_linters/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import re
import subprocess
import sys
from ast import literal_eval
from dataclasses import dataclass
from typing import Callable, ClassVar

Expand Down Expand Up @@ -111,7 +112,7 @@ class Configs:
),
},
"env": {
"debug": lambda x: setattr(Configs, "debug", x),
"debug": lambda x: setattr(Configs, "debug", literal_eval(x)),
".cpp.linters": lambda x: getattr(Configs, "linters_enabled").update(
{".cpp": re.split(r",\s", x)}
),
Expand Down

0 comments on commit 99c2bfa

Please sign in to comment.