google / google/yapf

indent block comments but remove comment-indentation

Open
#969 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

```
[style]
based_on_style=pep8
use_tabs=True
```

transforms:
```
class Foo(object):
» def __init__(self):
» #» pass
» » pass
```

into:
```
class Foo(object):
» def __init__(self):
» » #» pass
» » pass
```

I think (wrong indented) block comments should be indented, but the indentation in the comment should be removed.
So that we get:

```
class Foo(object):
» def __init__(self):
» » # pass
» » pass
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.