GithubHelp home page GithubHelp logo

Comments (9)

dkgi avatar dkgi commented on April 27, 2024 1

Unfortunately the documentation is not quite there yet. @shannonzhu is currently working on documenting the configuration. We'll keep you posted :)

from pyre-check.

Ameobea avatar Ameobea commented on April 27, 2024 1

Awesome; thanks for the cool tool!

from pyre-check.

dkgi avatar dkgi commented on April 27, 2024

Configuration can be found here: https://pyre-check.org/docs/configuration.html
Let us know if we missed something :)

from pyre-check.

rpgoldman avatar rpgoldman commented on April 27, 2024

@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.

dark avatar dark commented on April 27, 2024

@rpgoldman
search_path is a list of pathnames:

{                                                  
  "search_path" : ["/some/directory", "/some/other/directory"]                                  
}

from pyre-check.

rpgoldman avatar rpgoldman commented on April 27, 2024

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.

dark avatar dark commented on April 27, 2024

The config item is search_path not search-path :)

from pyre-check.

rpgoldman avatar rpgoldman commented on April 27, 2024

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.

dark avatar dark commented on April 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.