Skip to content

Commit b8c36fe

Browse files
committed
Cleanup
1 parent 97e81e5 commit b8c36fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mutmut/__main__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,16 +947,16 @@ def should_ignore_for_mutation(self, path):
947947

948948

949949
def config_reader():
950-
path=Path("pyproject.toml")
950+
path = Path('pyproject.toml')
951951
if path.exists():
952952
if sys.version_info >= (3, 11):
953953
from tomllib import loads
954954
else:
955955
from toml import loads
956-
data = loads(path.read_text("utf-8"))
956+
data = loads(path.read_text('utf-8'))
957957

958958
try:
959-
config = data["tool"]["mutmut"]
959+
config = data['tool']['mutmut']
960960
except KeyError:
961961
pass
962962
else:
@@ -986,7 +986,6 @@ def s(key, default):
986986

987987
@lru_cache()
988988
def read_config():
989-
990989
s = config_reader()
991990

992991
mutmut.config = Config(

0 commit comments

Comments
 (0)