]> git.madduck.net Git - etc/vim.git/blob - tests/data/simple_cases/fmtonoff5.py

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:

Prepare docs for release 22.8.0 (#3248)
[etc/vim.git] / tests / data / simple_cases / fmtonoff5.py
1 # Regression test for https://github.com/psf/black/issues/3129.
2 setup(
3     entry_points={
4         # fmt: off
5         "console_scripts": [
6             "foo-bar"
7             "=foo.bar.:main",
8         # fmt: on
9             ]  # Includes an formatted indentation.
10     },
11 )
12
13
14 # Regression test for https://github.com/psf/black/issues/2015.
15 run(
16     # fmt: off
17     [
18         "ls",
19         "-la",
20     ]
21     # fmt: on
22     + path,
23     check=True,
24 )
25
26
27 # Regression test for https://github.com/psf/black/issues/3026.
28 def test_func():
29     # yapf: disable
30     if  unformatted(  args  ):
31         return True
32     # yapf: enable
33     elif b:
34         return True
35
36     return False