devdanzin
devdanzin
Based on @BlaneG's code from #194, I adapted `RawVisitor` to use [asttokens](https://github.com/gristlabs/asttokens) so we get code roundtrip including comments. It's still a bit rough around the edges, but could be...
This PR add a `--class_names` option to `radon hal -f` that prefixes method names with their class names. Before: ```cmd > python -m radon hal -f .\radon\visitors.py [...] visit_ClassDef: h1:...
I'm currently adding a feature to [wily](https://github.com/tonybaloney/wily) that allows [annotating source code with radon metrics](https://devdanzin.github.io/wily/annotated_src.wily.operators.halstead.py.html). Cyclomatic Complexity results already have `lineno` and `endline` entries, making annotation trivial. However, Halstead metrics...
Saving board state (after every move?) and resuming from save state would avoid players losing progress on unexpected exit and crashes, as well as making it easier to stop during...
Allowing alternative chess engines, like pure Python [Sunfish](https://github.com/thomasahle/sunfish), could make it easier to target iOS support (cf. [Figure out how to add Stockfish engine for iOS since there's no download](https://trello.com/c/FYoH5KO0/43-figure-out-how-to-add-stockfish-engine-for-ios-since-theres-no-download))...
It might be useful to let players pick a chess piece theme in game. If this sounds desirable, I have a hackish proof of concept that could be developed into...
In `tabulate._CustomTextWrap._handle_long_word`, ANSI escape codes may be broken in the middle, resulting wrongly formatted tables. That happens because the length of the string is checked in `while self._len(chunk[:i])
When creating a table with `maxcolwidths`, ANSI escape codes sometimes get wrongly split. Here's an example, increasing the length of the "0123..." sequence to show the issue: ```python print(tabulate.tabulate(tabular_data=(('01234 (\x1b[32mabcdefghij\x1b[0m)',...
This PR makes `raw._logical` avoid counting lines with colons as two logical lines unless a compound statement keyword is present. There's still an issue, because "match" and "case" are soft...
Sometimes tabulate will create [broken wrapping tables by wrapping in the middle of ANSI escape codes](https://github.com/astanin/python-tabulate/issues/307#issue-2079178117). A [fix has been proposed](https://github.com/astanin/python-tabulate/pull/308#issue-2081890566) at the tabulate repository, but the project seems to...