Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Oct 26, 2024
1 parent 97e81e5 commit b8c36fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,16 +947,16 @@ def should_ignore_for_mutation(self, path):


def config_reader():
path=Path("pyproject.toml")
path = Path('pyproject.toml')
if path.exists():
if sys.version_info >= (3, 11):
from tomllib import loads
else:
from toml import loads
data = loads(path.read_text("utf-8"))
data = loads(path.read_text('utf-8'))

try:
config = data["tool"]["mutmut"]
config = data['tool']['mutmut']
except KeyError:
pass
else:
Expand Down Expand Up @@ -986,7 +986,6 @@ def s(key, default):

@lru_cache()
def read_config():

s = config_reader()

mutmut.config = Config(
Expand Down

0 comments on commit b8c36fe

Please sign in to comment.