Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Mar 4, 2023
1 parent 9d9708e commit 37644a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/creosote/parsers.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ast
import pathlib
import re
from functools import lru_cache

import toml
from dotty_dict import dotty
from loguru import logger

from creosote.models import Import, Package
from dotty_dict import dotty
import re


class PackageReader:
Expand Down
2 changes: 1 addition & 1 deletion src/creosote/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def package_to_module(self, package: Package):

def associate_imports_with_package(self, package: Package, name: str):
for imp in self.imports.copy():
if not imp.module and name in imp.name:
if not imp.module and name in imp.name: # noqa: SIM114
# import <imp.name>
package.associated_imports.append(imp)
elif imp.name and name in imp.module:
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
def with_packages(capsys, request):
with capsys.disabled():
subprocess.run(
["poetry", "add"] + request.param,
["poetry", "add", *request.param],
stdout=subprocess.DEVNULL,
)
yield
with capsys.disabled():
subprocess.run(
["poetry", "remove"] + request.param,
["poetry", "remove", *request.param],
stdout=subprocess.DEVNULL,
)

0 comments on commit 37644a4

Please sign in to comment.