black/tests
Sergey Vartanov 40fae18134
Possible fix for issue with indentation and fmt: skip (#2281)
Not sure the fix is right.  Here is what I found: issue is connected
with line

    first.prefix = prefix[comment.consumed :]

in `comments.py`.  `first.prefix` is a prefix of the line, that ends
with `# fmt: skip`, but `comment.consumed` is the length of the
`"  # fmt: skip"` string.  If prefix length is greater than 14,
`first.prefix` will grow every time we apply formatting.

Fixes #2254
2021-06-08 14:37:34 -07:00
..
data Possible fix for issue with indentation and fmt: skip (#2281) 2021-06-08 14:37:34 -07:00
__init__.py Remove deprecated use of 'setup.py test' (#1275) 2020-05-08 06:23:50 -07:00
conftest.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
empty.toml Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
optional.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
test_black.py Add option to require a specific version to be running (#2300) 2021-06-03 13:09:41 -07:00
test_blackd.py Mark blackd tests with the blackd optional marker (#2204) 2021-05-07 16:33:36 +02:00
test_format.py Possible fix for issue with indentation and fmt: skip (#2281) 2021-06-08 14:37:34 -07:00
test_primer.py primer: Add --no-diff option (#2187) 2021-05-04 10:44:40 +02:00
test.toml Fix toml parsing and bump toml from 0.10.0 to 0.10.1 (#1501) 2020-06-16 11:58:33 -07:00
util.py Refactor src/black/__init__.py into many files (#2206) 2021-05-08 11:29:47 +02:00