Skip to content

Commit

Permalink
Merge pull request #45 from haplo/test-config
Browse files Browse the repository at this point in the history
Test preview and skip-magic-trailing-comma config parsing
  • Loading branch information
haplo committed May 19, 2023
2 parents f905276 + f5cf117 commit e96209c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mypy:
pre-commit run -a mypy

test:
pytest -v .
pytest -vv .

build: lint test
python3 setup.py sdist bdist_wheel
Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/config/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
line-length = 20
--fast = true
pyi = true
skip-magic-trailing-comma = true
skip-string-normalization = true
preview = true
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ def test_load_config(config):
"target_version": set(),
"pyi": True,
"fast": True,
"skip_magic_trailing_comma": False,
"skip_magic_trailing_comma": True,
"skip_string_normalization": True,
"preview": False,
"preview": True,
}


Expand Down

0 comments on commit e96209c

Please sign in to comment.