-
-
Notifications
You must be signed in to change notification settings - Fork 719
Description
Snekbox is pretty cool, we could use it to run a bunch of cool commands. python-discord/snekbox#108 allows us to pass in custom arguments, so we should be able to do things like python -m black -c "code"
fairly easily. An example of this is the timeit command #1602
We could use this to create a bunch of utility commands to run useful python command line tools (each tool would need to be tested to ensure it works under snekbox's limitations though).
Some ideas for things we could add:
- black
- mypy
- flake8
- A
dis
command that runsdis.dis
on the code - An
ast
command that runsast.parse
and thenast.dumps
it.
One thing to be decided is if we would want to take input for options (e.g. line length for black), and if so how would we do that?
What are your thoughts on this, do we want any of these features? Anything else that hasn't been mentioned here? There are other tools like pyright or autopep8 we could add, although should we avoid adding too much bulk?