Skip to content

Commit e96209c

Browse files
authored
Merge pull request #45 from haplo/test-config
Test preview and skip-magic-trailing-comma config parsing
2 parents f905276 + f5cf117 commit e96209c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mypy:
1414
pre-commit run -a mypy
1515

1616
test:
17-
pytest -v .
17+
pytest -vv .
1818

1919
build: lint test
2020
python3 setup.py sdist bdist_wheel

tests/fixtures/config/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
line-length = 20
33
--fast = true
44
pyi = true
5+
skip-magic-trailing-comma = true
56
skip-string-normalization = true
7+
preview = true

tests/test_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ def test_load_config(config):
233233
"target_version": set(),
234234
"pyi": True,
235235
"fast": True,
236-
"skip_magic_trailing_comma": False,
236+
"skip_magic_trailing_comma": True,
237237
"skip_string_normalization": True,
238-
"preview": False,
238+
"preview": True,
239239
}
240240

241241

0 commit comments

Comments
 (0)