Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim: Parse skip_magic_trailing_comma from pyproject.toml #2613

Merged
merged 34 commits into from Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
23eac8c
added ability to parse magic trailing comma option from pyproject.tom…
Sep 21, 2021
8f2de88
update CHANGES.md to include description of change
Sep 21, 2021
04de679
clarify changes.md
Sep 21, 2021
69298f5
merged with black/main
Oct 4, 2021
c39e6b5
removed embarrassing git diff marker from CHANGES.md
Oct 4, 2021
eae5ef5
Bump typed-ast minimum to 1.4.3 for 3.10 compat (#2519)
ichard26 Oct 5, 2021
bfc56c6
chore(ci): use official Python 3.10 (#2521)
mkniewallner Oct 5, 2021
8a2b612
Fix feature detection for positional-only arguments in lambdas (#2532)
Zac-HD Oct 12, 2021
e50a04a
bump sphinx so it works on Python3.10 (#2546)
MarcoGorelli Oct 19, 2021
3381b23
Define a stability policy (#2529)
JelleZijlstra Oct 21, 2021
b13c652
Disallow any Generics on mypy except in black_primer (#2556)
nipunn1313 Oct 22, 2021
17ba917
Remove some unneeded exceptions from mypy.ini (#2557)
nipunn1313 Oct 22, 2021
3969b9f
Refactor Jupyter magic handling (#2545)
MarcoGorelli Oct 27, 2021
1607b79
Print out line diff on test failure (#2552)
nipunn1313 Oct 27, 2021
c3a21e2
Add --projects cli flag to black-primer (#2555)
nipunn1313 Oct 27, 2021
74e07e5
black-primer: Print summary after individual failures (#2570)
nipunn1313 Oct 28, 2021
dad36ea
fix: allow tests to be run from (hopefully) any directory (GH-2574)
dawnofmidnight Oct 30, 2021
4438f53
Add Tesla to organizations list (#2577)
rtdev-com Oct 30, 2021
e641afb
Use STDIN project in test_projects to ensure it runs quickly (#2575)
nipunn1313 Oct 30, 2021
212e0d2
Update bug template (#2538)
felix-hilden Oct 30, 2021
c18400a
Address mypy errors on 3.10 w/ asyncio loop parameter (#2580)
ichard26 Oct 30, 2021
c592d0f
Pin regex in docker to 2021.10.8 (GH-2579)
cooperlees Oct 31, 2021
74985a3
Deprecate Python 2 formatting support (#2523)
ichard26 Oct 31, 2021
0983b22
install build-essential to compile dependencies and use multi-stage …
vbarbaresi Nov 1, 2021
a95e49c
Update CHANGES.md for 21.10b0 release (#2583)
cooperlees Nov 1, 2021
b90f0db
Add a missing space in Python 2 deprecation (GH-2590)
LordOfPolls Nov 6, 2021
5a69ccc
primer: Hypothesis now requires Python>=3.8 (GH-2602)
ichard26 Nov 11, 2021
5cd3afe
Improve Python 2 only syntax detection (GH-2592)
ichard26 Nov 12, 2021
c8bbe8b
Fix typos (#2603)
kianmeng Nov 12, 2021
2e1b951
Bump deps in Pipfile.lock (GH-2605)
ichard26 Nov 13, 2021
3c2ea8a
black/parser: partial support for pattern matching (#2586)
isidentical Nov 14, 2021
71e760c
Allow install under pypy (#2559)
olliemath Nov 14, 2021
f7ff671
Merge remote-tracking branch 'origin/main' into nullromo-main
JelleZijlstra Nov 16, 2021
5f34c1c
Update CHANGES.md
JelleZijlstra Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -15,6 +15,7 @@
### Integrations

- Fixed vim plugin with Python 3.10 by removing deprecated distutils import (#2610)
- The vim plugin now parses `skip_magic_trailing_comma` from pyproject.toml (#2613)

## 21.10b0

Expand Down
2 changes: 2 additions & 0 deletions autoload/black.vim
Expand Up @@ -29,6 +29,7 @@ FLAGS = [
Flag(name="fast", cast=strtobool),
Flag(name="skip_string_normalization", cast=strtobool),
Flag(name="quiet", cast=strtobool),
Flag(name="skip_magic_trailing_comma", cast=strtobool),
]


Expand Down Expand Up @@ -143,6 +144,7 @@ def Black(**kwargs):
line_length=configs["line_length"],
string_normalization=not configs["skip_string_normalization"],
is_pyi=vim.current.buffer.name.endswith('.pyi'),
magic_trailing_comma=not configs["skip_magic_trailing_comma"],
**black_kwargs,
)
quiet = configs["quiet"]
Expand Down