hpython
hpython copied to clipboard
Haskell language tools for Python
Hey team- I know this isn't strictly an `hpython` issue (probably more of a `nixpkgs` problem) but I wanted to post here to let you know I'm working on a...
I cant build on nix
It would be awesome to support python3.6 f-strings, introduced [here](https://docs.python.org/3.6/reference/lexical_analysis.html#string-and-bytes-literals). For example: ``` name = 'paul' message = 'hello' str = f'{name} says {message}' ```
As far as I can tell `hpython` only parses standard Python comments: https://github.com/qfpl/hpython/blob/ede398a5629a575abc26deb1ab7053480ed92c02/src/Language/Python/Internal/Lexer.hs#L115-L118 Is there any reason that it doesn't support parsing of docstrings, or is it just not a...
There are three mutable, globally accessible dicts called `locals()` and `globals()`, and `vars()`. When these dicts are modified, new variables are brought into scope. Warn about these usages. Warnings should...
Currently we warn about all usages of `globals`, `nonlocals`, and `del`. In the general case they interfere with scope checking, but there is a subset of usages that are safe....
It would be nice if you could derive this generically rather than writing it out by hand.
For example, where we have `Maybe (NonEmpty Whitespace)` we can instead have `Maybe Async`
Currently if you validate python code then you just get a list of errors. It would be good to be able to translate that list into a human readable representation....
Python will try to constant-fold expressions like `100 ** 123456789`, which takes a very long time. Output a warning when this is encountered. For extra credit, write a refactor rule...