You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to obtain wily statistics for an entire repository, similarly to (https://stribny.name/blog/2019/05/measuring-python-code-complexity-with-wily/). I cloned a copy of wily from github, but when I try to build it using the wily command, I get the error that the wily repo is not a valid git repo. The report function also does not work, as would be expected by the error below. The first revision in wily report . is mine because I was doing some simple experimenting.
chrisliao@linux6:~$ wily build wily
Defaulting back to the filesystem archiver, not a valid git repo
Found 0 revisions from 'filesystem' archiver in '/home/chrisliao'.
Running operators - halstead,maintainability,cyclomatic,raw
Completed building wily history, run `wily report <file>` or `wily index` to see more.
chrisliao@linux6:~$ cd wily && wily report . -n 5
Using default metrics ['halstead.h1', 'raw.loc', 'maintainability.mi', 'cyclomatic.complexity']
-----------History for ['cyclomatic.complexity', 'halstead.h1', 'maintainability.mi', 'raw.loc']------------
╒════════════╤══════════════╤════════════╤═══════════════╤═══════════════════╤═══════════════════╤═════════════════╕
│ Revision │ Author │ Date │ Cyclomatic │ Unique Operands │ Maintainability │ Lines of Code │
│ │ │ │ Complexity │ │ Index │ │
╞════════════╪══════════════╪════════════╪═══════════════╪═══════════════════╪═══════════════════╪═════════════════╡
│ b91446e │ liaochris │ 2023-11-14 │ Not found '.' │ Not found '.' │ Not found '.' │ Not found '.' │
├────────────┼──────────────┼────────────┼───────────────┼───────────────────┼───────────────────┼─────────────────┤
│ 2590691 │ Anthony Shaw │ 2023-10-10 │ Not found '.' │ Not found '.' │ Not found '.' │ Not found '.' │
├────────────┼──────────────┼────────────┼───────────────┼───────────────────┼───────────────────┼─────────────────┤
│ 4ac2334 │ Anthony Shaw │ 2023-10-10 │ Not found '.' │ Not found '.' │ Not found '.' │ Not found '.' │
├────────────┼──────────────┼────────────┼───────────────┼───────────────────┼───────────────────┼─────────────────┤
│ ee7014a │ Anthony Shaw │ 2023-10-10 │ Not found '.' │ Not found '.' │ Not found '.' │ Not found '.' │
├────────────┼──────────────┼────────────┼───────────────┼───────────────────┼───────────────────┼─────────────────┤
│ a79b62e │ Anthony Shaw │ 2023-10-10 │ Not found '.' │ Not found '.' │ Not found '.' │ Not found '.' │
╘════════════╧══════════════╧════════════╧═══════════════╧═══════════════════╧═══════════════════╧═════════════════╛
The text was updated successfully, but these errors were encountered:
Same error for me. Wily version 1.25.0 on Windows 10, Python 3.12. The directory I specify for build does have the .git directory for the project, and it is a working git archive.
[LATER] I had to run wily index first. index works on the current directory so I had to cd to the top of the git repo first. index doesn't accept a path parameter, which seems on undesirable omission.
I wanted to obtain wily statistics for an entire repository, similarly to (https://stribny.name/blog/2019/05/measuring-python-code-complexity-with-wily/). I cloned a copy of wily from github, but when I try to build it using the wily command, I get the error that the
wily
repo isnot a valid git repo
. The report function also does not work, as would be expected by the error below. The first revision inwily report .
is mine because I was doing some simple experimenting.The text was updated successfully, but these errors were encountered: