Skip to content

Commit

Permalink
Merge pull request #53 from rohaquinlop/issue-52
Browse files Browse the repository at this point in the history
feat(build): #52 improve usability of the package
  • Loading branch information
rohaquinlop authored Oct 28, 2024
2 parents 38f8871 + 173f41a commit 65edd78
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions complexipy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from complexipy.rust import (
CodeComplexity,
FileComplexity,
FunctionComplexity,
)

from .main import (
code_complexity,
file_complexity,
)

__all__ = [
"CodeComplexity",
"FileComplexity",
"FunctionComplexity",
"code_complexity",
"file_complexity",
]
5 changes: 4 additions & 1 deletion tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import unittest
from pathlib import Path

from complexipy.main import file_complexity, code_complexity
from complexipy import (
file_complexity,
code_complexity,
)


class TestFiles(unittest.TestCase):
Expand Down

0 comments on commit 65edd78

Please sign in to comment.