Skip to content

Commit

Permalink
pyre
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Oct 19, 2023
1 parent 638883a commit 8e844a0
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,9 @@
[submodule "vendor/agent-protocol-sdk-python"]
path = vendor/agent-protocol-sdk-python
url = https://github.com/AI-Engineer-Foundation/agent-protocol-sdk-python
[submodule "vendor/analysis/pyre-check"]
path = vendor/analysis/pyre-check
url = https://github.com/meta-introspector/pyre-check
[submodule "vendor/analysis/watchman"]
path = vendor/analysis/watchman
url = https://github.com/meta-introspector/watchman
6 changes: 6 additions & 0 deletions pyre/.pyre_configuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"site_package_search_strategy": "pep561",
"source_directories": [
"."
]
}
1 change: 1 addition & 0 deletions pyre/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 8 additions & 0 deletions pyre/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
prep
`pip install pyre-check`

run this to collect data
`vendor/runpyre.sh`

list of files
`jq -r keys[] pyre_statistics.txt `
1 change: 1 addition & 0 deletions vendor/analysis/pyre-check
Submodule pyre-check added at 8c54d9
1 change: 1 addition & 0 deletions vendor/analysis/watchman
Submodule watchman added at 58b35a
31 changes: 31 additions & 0 deletions vendor/runpyre.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

#set -e

for D in *
do
if [ -d "${D}" ]; then
echo "${D}" # your processing here
pushd $D
if [ ! -f .pyre_configuration ]; then
cp ../../pyre/.pyre_configuration .
fi
if [ ! -f .watchmanconfig ]; then
cp ../../pyre/.watchmanconfig .
fi
if [ ! -f pyre_init.txt ] ; then
pyre init |tee pyre_init.txt
fi
if [ ! -f pyre_coverage.txt ] ; then
pyre coverage |tee pyre_coverage.txt
fi
if [ ! -f pyre_statistics.txt ] ; then
pyre statistics | tee pyre_statistics.txt
fi
if [ ! -f pyre_dump.json ] ; then
#pyre dump --output pyre_dump.json
#pyre-check query "types_in_file('tests.py')"
echo pass
fi
popd
fi
done

0 comments on commit 8e844a0

Please sign in to comment.