Comments (9)
Unfortunately the documentation is not quite there yet. @shannonzhu is currently working on documenting the configuration. We'll keep you posted :)
from pyre-check.
Awesome; thanks for the cool tool!
from pyre-check.
Configuration can be found here: https://pyre-check.org/docs/configuration.html
Let us know if we missed something :)
from pyre-check.
@dkgi It would be helpful if you could explain how search path could be initialized in the pyre configuration file. I am using it successfully as a command line option (--search-path
) but haven't figured out its use in the configuration file. In particular, what data type is a SEARCH_PATH
? A pathname? a list of pathnames? Thanks!
from pyre-check.
@rpgoldman
search_path
is a list of pathnames:
{
"search_path" : ["/some/directory", "/some/other/directory"]
}
from pyre-check.
For some reason that isn't working for me. When I try to use the following configuration file, pyre does not see the stubs I have put in /Users/rpg/projects/xplan/yeast-gates-data/stubs/
, but when I pass that directory using --search-path
, it does. Any idea why not? Could the autogenerated
configuration option interfere with search-path
?
$ cat .pyre_configuration
{
"binary": "/Users/rpg/Library/Python/3.7/bin/pyre.bin",
"source_directories": [
"."
],
"typeshed": "/Users/rpg/Library/Python/3.7/lib/pyre_check/typeshed/",
"autogenerated": ["/Users/rpg/projects/xplan/yeast-gates-data/Charts/",
"/Users/rpg/projects/xplan/yeast-gates-data/Model2.0/",
"/Users/rpg/projects/xplan/yeast-gates-data/Models/",
"/Users/rpg/projects/xplan/yeast-gates-data/.mypy_cache/",
"/Users/rpg/projects/xplan/yeast-gates-dataprior/",
"/Users/rpg/projects/xplan/yeast-gates-data/pymc3-data/",
"/Users/rpg/projects/xplan/yeast-gates-data/stubs/"],
"search-path": ["/Users/rpg/projects/xplan/yeast-gates-data/stubs/"]
}rpg@RPG-MacBook-Pro: ~/projects/xplan/yeast-gates-data $ ls /Users/rpg/projects/xplan/yeast-gates-data/stubs/
FlowCytometryTools/ numpy@ pymc3@
from pyre-check.
The config item is search_path
not search-path
:)
from pyre-check.
Thanks! As a long-time lisp user (Emacs and Common), that is not a surprising mistake for me to make. But the command-line option works with the hyphen instead of an underscore: you might want to remark on this in the configuration docs.
from pyre-check.
It's a mistake that happens more often than you'd expect :) 4d0e797 added some code to warn when a configuration item is not recognized, but we haven't published a new release since. Maybe it's time I push that button.
from pyre-check.
Related Issues (20)
- Pyre infers set-of-literals as set[str] rather than set[MyLiteral] HOT 1
- Null
- Ask for if also import pysa-filter for `sapp` when run `pyre init-pysa`
- Allow use of pyre_extensions in pyre playground, use newer typing_extensions
- Mutable attributes of classes should be invariant in subclasses. HOT 1
- Internal crash: Raised in src/string.ml HOT 11
- Pyre doesn't understand for-else statement HOT 2
- Is it possible to taint specific values of parameters? HOT 2
- Tainting Python Builtin Functions! How do we do this? HOT 1
- Module boto3 - Taint Propagation Issue HOT 3
- Context Manager - Taint Propagation Issue
- PySpark - Incompatible parameter type & Unsupported operand HOT 1
- [Pyre setup.sh] Terminal closes while building from source HOT 2
- Pysa tutorial not working HOT 4
- Find lambdas are not checked correctly HOT 1
- Errors with recursive type aliases: "JSON is declared to have type `TypeAlias` but is used as type `UnionType`"
- pyre from PyPI can't find its typeshed directory HOT 1
- Update pyre-check.org/play to use Python 3.11 HOT 2
- [BUG] Check command exited with non-zero return code: 126. HOT 1
- CI builds are broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyre-check.