]>
git.madduck.net Git - etc/vim.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e94bda1 )
recognize it was safe to do so, put it there manually and *Black* will
keep it.
recognize it was safe to do so, put it there manually and *Black* will
keep it.
### Strings
*Black* prefers double quotes (`"` and `"""`) over single quotes (`'`
### Strings
*Black* prefers double quotes (`"` and `"""`) over single quotes (`'`
key. My recommendation here is to keep using whatever is faster to type
and let *Black* handle the transformation.
key. My recommendation here is to keep using whatever is faster to type
and let *Black* handle the transformation.
### Line Breaks & Binary Operators
*Black* will break a line before a binary operator when splitting a block
### Line Breaks & Binary Operators
*Black* will break a line before a binary operator when splitting a block
style guide enforcement tools like Flake8. Since ``W503`` is not PEP 8 compliant,
you should tell Flake8 to ignore these warnings.
style guide enforcement tools like Flake8. Since ``W503`` is not PEP 8 compliant,
you should tell Flake8 to ignore these warnings.
### Slices
PEP 8 [recommends](https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements)
### Slices
PEP 8 [recommends](https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements)
enforcement tools like Flake8. Since ``E203`` is not PEP 8 compliant, you should
tell Flake8 to ignore these warnings.
enforcement tools like Flake8. Since ``E203`` is not PEP 8 compliant, you should
tell Flake8 to ignore these warnings.
### Parentheses
Some parentheses are optional in the Python grammar. Any expression can
### Parentheses
Some parentheses are optional in the Python grammar. Any expression can
decision = (maybe.this() and values > 0) or (maybe.that() and values < 0)
```
decision = (maybe.this() and values > 0) or (maybe.that() and values < 0)
```
### Call chains
Some popular APIs, like ORMs, use call chaining. This API style is known
### Call chains
Some popular APIs, like ORMs, use call chaining. This API style is known
### Typing stub files
PEP 484 describes the syntax for type hints in Python. One of the
### Typing stub files
PEP 484 describes the syntax for type hints in Python. One of the
Use [joslarson.black-vscode](https://marketplace.visualstudio.com/items?itemName=joslarson.black-vscode).
Use [joslarson.black-vscode](https://marketplace.visualstudio.com/items?itemName=joslarson.black-vscode).
### SublimeText 3
Use [sublack plugin](https://github.com/jgirardet/sublack).
### SublimeText 3
Use [sublack plugin](https://github.com/jgirardet/sublack).
### IPython Notebook Magic
Use [blackcellmagic](https://github.com/csurfer/blackcellmagic).
### IPython Notebook Magic
Use [blackcellmagic](https://github.com/csurfer/blackcellmagic).
### Other editors
Atom/Nuclide integration is planned by the author, others will
### Other editors
Atom/Nuclide integration is planned by the author, others will