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

Bump from upstream #3

Merged
merged 681 commits into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
681 commits
Select commit Hold shift + click to select a range
e9f520c
Bump myst-parser from 0.15.2 to 0.16.0 in /docs (GH-2696)
dependabot[bot] Dec 15, 2021
f10ce0c
Bump pre-commit/action from 2.0.2 to 2.0.3 (GH-2695)
dependabot[bot] Dec 15, 2021
dc90d49
Unpacking on flow constructs (return/yield) now implies 3.8+ (#2700)
isidentical Dec 16, 2021
61fe841
Use 'python -m build' to build wheel and source distributions (#2701)
mwtoews Dec 16, 2021
b97ec62
Imply 3.8+ when annotated assigments used with unparenthesized tuples…
isidentical Dec 17, 2021
6ef3e46
Bump sphinx from 4.3.1 to 4.3.2 in /docs (#2709)
dependabot[bot] Dec 20, 2021
c5b458e
Bump myst-parser from 0.16.0 to 0.16.1 in /docs (#2710)
dependabot[bot] Dec 20, 2021
389e9c2
Disable universal newlines when reading TOML (#2408)
hukkin Dec 21, 2021
7c94ed6
Define is_name_token (and friends) to resolve some `type: ignore`s (G…
MarcoGorelli Dec 21, 2021
c758126
Remove usage of Pipenv, rely on good ol' `pip` and `virtualenv` in do…
ambv Dec 21, 2021
3fafd80
Support multiple top-level as-expressions on case statements (#2716)
isidentical Dec 21, 2021
f0a99f6
Update contributing wording (#2719)
felix-hilden Dec 21, 2021
ced2d65
remove all type: ignores in src/black (GH-2720)
MarcoGorelli Dec 25, 2021
092959f
Support pytest 7 by fixing broken imports (GH-2705)
hroncok Dec 25, 2021
b8df7e4
Drop upper version bounds on dependencies (GH-2718)
JelleZijlstra Dec 30, 2021
4f5268a
Primer: exclude crashing sqlalchemy file for now (GH-2735)
ichard26 Dec 31, 2021
8a84beb
Documentation: include Wing IDE 8 integrations (GH-2733)
gunungpw Jan 2, 2022
668bace
Improve CLI reference wording (#2753)
felix-hilden Jan 7, 2022
05e1fbf
Stubs: preserve blank line between attributes and methods (#2736)
ichard26 Jan 7, 2022
ea4c772
Action: Support running in a docker container (#2748)
joshowen Jan 7, 2022
e64949e
Fix call patterns that contain as-expression on the kwargs (#2749)
isidentical Jan 7, 2022
e401b6b
Remove Python 2 support (#2740)
ichard26 Jan 10, 2022
521d1b8
Enhance `--verbose` (#2526)
Shivansh-007 Jan 10, 2022
3e73152
Speed up new backtracking parser (#2728)
isidentical Jan 10, 2022
0f26a03
Fix handling of standalone match/case with newlines/comments (#2760)
isidentical Jan 10, 2022
4efb795
Change git url for pip installation in README (#2761)
bo5o Jan 11, 2022
8954e58
Change installation url to comply with git security change (#2765)
jlazar17 Jan 11, 2022
f298032
don't expect changes on poetry (#2769)
JelleZijlstra Jan 13, 2022
799f76f
Normalise string prefix order (#2297)
felix-hilden Jan 13, 2022
7a29568
Don't make redundant copies of the DFA (#2763)
isidentical Jan 14, 2022
5543d1b
Added decent coloring (#2712)
VanSHOE Jan 14, 2022
565f9c9
CI: add diff-shades integration (#2725)
ichard26 Jan 14, 2022
5fe6d48
Dont require typing-extensions in 3.10 (GH-2772)
MarcoGorelli Jan 15, 2022
33e3bb1
[trivial] Use proper test cases on `unittest` (#2775)
isidentical Jan 15, 2022
1d2ed2b
Bump sphinx from 4.3.2 to 4.4.0 in /docs (#2776)
dependabot[bot] Jan 17, 2022
98db4ab
Fix typo in diff_shades.yml workflow (#2778)
JelleZijlstra Jan 17, 2022
8c22d23
Create --preview CLI flag (#2752)
felix-hilden Jan 20, 2022
9bd4134
Fix and speedup diff-shades integration (#2773)
ichard26 Jan 20, 2022
6e97c5f
Deprecate ESP and move the functionality under --preview (#2789)
felix-hilden Jan 20, 2022
e66e0f8
Hint at likely cause of ast parsing failure in error message (#2786)
emfdavid Jan 20, 2022
4ea75cd
Add support for custom python cell magics (#2744)
mgmarino Jan 21, 2022
e0c5728
Set `click` lower bound to `8.0.0` (#2791)
Shivansh-007 Jan 21, 2022
95c03b9
add wind technology software projects using black (#2792)
RHammond2 Jan 21, 2022
d24bc43
Switch to Furo (#2793)
ichard26 Jan 21, 2022
10677ba
Allow setting custom cache directory on all platforms (#2739)
percurnicus Jan 22, 2022
fb1d1b2
Mark Felix and Batuhan as maintainers (#2794)
ichard26 Jan 22, 2022
811de5f
Refactor logic for stub empty lines (#2796)
hauntsaninja Jan 22, 2022
b3b341b
Mention "skip news" label in CHANGELOG action (#2797)
hauntsaninja Jan 22, 2022
022f896
Enable pattern matching by default (#2758)
isidentical Jan 22, 2022
6e3677f
Allow blackd to be run as a package (#2800)
ichard26 Jan 23, 2022
d2c938e
Remove Beta mentions in README + Docs (#2801)
cooperlees Jan 23, 2022
3905173
Use `magic_trailing_comma` and `preview` for `FileMode` in `fuzz` (#2…
sobolevn Jan 23, 2022
73cb6e7
Make SRC or code mandatory and mutually exclusive (#2360) (#2804)
felix-hilden Jan 24, 2022
6417c99
Hug power operators if its operands are "simple" (#2726)
ichard26 Jan 25, 2022
32dd9ec
properly run ourselves twice (#2807)
JelleZijlstra Jan 25, 2022
889a8d5
Fix crash on some power hugging cases (#2806)
JelleZijlstra Jan 27, 2022
b517dfb
black-primer: stop running it (#2809)
JelleZijlstra Jan 27, 2022
b92822a
more trailing comma tests (#2810)
JelleZijlstra Jan 27, 2022
777cae5
Use parentheses on method access on float and int literals (#2799)
Shivansh-007 Jan 28, 2022
fda2561
Tests for unicode identifiers (#2816)
hauntsaninja Jan 28, 2022
5f01b87
reorganize release notes for 22.1.0 (#2790)
JelleZijlstra Jan 28, 2022
e150676
Elaborate on Python support policy (#2819)
felix-hilden Jan 28, 2022
3437950
Treat blank lines in stubs the same inside top-level `if` statements …
hauntsaninja Jan 29, 2022
4ce049d
torture test (#2815)
JelleZijlstra Jan 29, 2022
df0aeee
Formalise style preference description (#2818)
felix-hilden Jan 29, 2022
95e77cb
Fix arithmetic stability issue (#2817)
hauntsaninja Jan 29, 2022
a24e1f7
Fix instability due to trailing comma logic (#2572)
nipunn1313 Jan 29, 2022
a4992b4
Add a test case to torture.py (#2822)
hauntsaninja Jan 29, 2022
8acb854
Update classifiers to reflect stable (#2823)
ichard26 Jan 29, 2022
0d768e5
Remove test suite from setup.py (#2824)
JelleZijlstra Jan 29, 2022
c5f8e8b
Fix changelog entries in the wrong release (#2825)
JelleZijlstra Jan 29, 2022
dea2f94
Fix changelog entries in the wrong release (#2825)
JelleZijlstra Jan 29, 2022
d038a24
Prepare docs for release 22.1.0 (GH-2826)
ichard26 Jan 29, 2022
bbe1bdf
Adjust `--preview` documentation (#2833)
JelleZijlstra Jan 30, 2022
f61299a
Exclude __pypackages__ by default (GH-2836)
JelleZijlstra Jan 30, 2022
cae7ae3
Soft comparison of --required-version (#2832)
freud14 Jan 30, 2022
afc0fb0
release process: formalize the changelog template (#2837)
JelleZijlstra Jan 30, 2022
f3f3acc
Surface links to Stability Policy (GH-2848)
sco1 Feb 1, 2022
fb9fe6b
Isolate command line tests from user-level config (#2851)
ichard26 Feb 1, 2022
111880e
Update description for GitHub Action `options:` argument (GH-2858)
magnetikonline Feb 2, 2022
31fe97e
Create indentation FAQ entry (#2855)
felix-hilden Feb 2, 2022
01001d5
Bump sphinx-copybutton from 0.4.0 to 0.5.0 in /docs (#2871)
dependabot[bot] Feb 7, 2022
9b31717
Add Django in 'used by' section in Readme (#2875)
pauloxnet Feb 8, 2022
b4a6bb0
Avoid crashing when the user has no homedir (#2814)
ewjoachim Feb 8, 2022
862c6f2
Order the disabled error codes for pylint (GH-2870)
huxuan Feb 11, 2022
07a2e6f
Fix typo in file_collection_and_discovery.md (GH-2860)
LLyaudet Feb 11, 2022
50a8569
Isolate command line tests for notebooks from user-level config (#2854)
freud14 Feb 21, 2022
8089aaa
correct Vim integration code (#2853)
benknoble Feb 21, 2022
c26c772
Add special config verbose log case when black is using user-level co…
Shivansh-007 Feb 21, 2022
7e2b2d4
Bump furo from 2022.1.2 to 2022.2.14.1 in /docs (GH-2892)
dependabot[bot] Feb 23, 2022
2918ea3
Format ourselves in preview mode (#2889)
JelleZijlstra Feb 24, 2022
6cfb518
separate CHANGELOG section for preview style (#2890)
JelleZijlstra Feb 24, 2022
9b16107
fix new formatting issue (#2895)
JelleZijlstra Feb 24, 2022
1475264
README: fix "Pragmatism" link target (#2901)
hauntsaninja Mar 1, 2022
67eaf24
replace md5 with sha256 (#2905)
tomjelinek Mar 3, 2022
7af3abd
Move test for g:load_black to improve plugin performance (GH-2896)
oncomouse Mar 5, 2022
eb21315
Bump furo from 2022.2.14.1 to 2022.3.4 in /docs (#2906)
dependabot[bot] Mar 5, 2022
6f4976a
Allow `for`'s target expression to be starred (#2879)
isidentical Mar 5, 2022
dab1be3
Bump actions/checkout from 2 to 3 (#2909)
dependabot[bot] Mar 7, 2022
fd6e92a
Bump actions/setup-python from 2 to 3 (#2908)
dependabot[bot] Mar 7, 2022
24ffc54
Fix handling of Windows junctions in normalize_path_maybe_ignore (#2904)
yoerg Mar 8, 2022
71e71e5
Use tomllib on Python 3.11 (#2903)
hauntsaninja Mar 8, 2022
9ce3c80
Bump mypy, flake8, and pre-commit-hooks in pre-commit (GH-2922)
ichard26 Mar 14, 2022
a57ab32
Farewell black-primer, it was nice knowing you (#2924)
ichard26 Mar 15, 2022
086ae68
Remove power hugging formatting from preview (#2928)
Shivansh-007 Mar 16, 2022
fa7f015
Update pylint config docs (#2931)
jpy-git Mar 16, 2022
f87df0e
dont skip formatting #%% (#2919)
MarcoGorelli Mar 21, 2022
5379d4f
stub style: remove some possible future changes (#2940)
JelleZijlstra Mar 21, 2022
062b549
Github now supports .git-blame-ignore-revs (GH-2948)
ichard26 Mar 23, 2022
3800ebd
Avoid magic-trailing-comma in single-element subscripts (#2942)
jpy-git Mar 24, 2022
14e5ce5
Remove unnecessary parentheses from tuple unpacking in `for` loops (#…
jpy-git Mar 24, 2022
14d84ba
Resolve new flake8-bugbear errors (B020) (GH-2950)
jpy-git Mar 24, 2022
bd1e980
Remove unnecessary parentheses from `except` clauses (#2939)
jpy-git Mar 26, 2022
f239d22
Enforce no formatting changes for PRs via CI (GH-2951)
ichard26 Mar 26, 2022
ac7402c
Bump sphinx from 4.4.0 to 4.5.0 in /docs (GH-2959)
dependabot[bot] Mar 28, 2022
e9681a4
Fix _unicodefun patch code for Click 8.1.0 (#2966)
JelleZijlstra Mar 28, 2022
ae2c075
Prepare release 22.3.0 (#2968)
JelleZijlstra Mar 28, 2022
2d62a09
Bump actions/cache from 2.1.7 to 3 (GH-2962)
dependabot[bot] Mar 29, 2022
82e150a
Keep tests working w/ upcoming aiohttp 4.0.0 (#2974)
ichard26 Mar 30, 2022
3dea6e3
Convert `index.rst` and `license.rst` to markdown (#2852)
gunungpw Mar 30, 2022
a66016c
Add # type: ignore for click._unicodefun import (#2981)
JelleZijlstra Mar 30, 2022
def0483
Remove click pin in diff-shades workflow (#2979)
JelleZijlstra Mar 30, 2022
3451502
Bump peter-evans/find-comment from 1.3.0 to 2 (#2960)
dependabot[bot] Apr 2, 2022
5436810
Bump peter-evans/create-or-update-comment from 1.4.5 to 2 (#2961)
dependabot[bot] Apr 2, 2022
1af29fb
try-except tomllib import (#2987)
JelleZijlstra Apr 2, 2022
4d0a4b1
Fix broken link in README.md (#2989)
jpy-git Apr 2, 2022
24c708e
Remove unnecessary parentheses from `with` statements (#2926)
jpy-git Apr 3, 2022
fa5fd26
Update test_black.shhh_click test for click 8+ (#2993)
ichard26 Apr 5, 2022
421383d
Update FAQ: Mention formatting of custom jupyter cell magic (#2982)
kolibril13 Apr 5, 2022
9b30740
Top PyPI Packages: Use 30-days data, 365 is no longer available (#2995)
hugovk Apr 6, 2022
f6188ce
Output python version and implementation as part of `--version` flag …
jpy-git Apr 6, 2022
98fccce
Better manage return annotation brackets (#2990)
jpy-git Apr 9, 2022
75f99bd
Remove redundant parentheses around awaited coroutines/tasks (#2991)
jpy-git Apr 9, 2022
431bd09
Correctly handle fmt: skip comments without internal spaces (#2970)
siuryan Apr 9, 2022
497a725
Explain our use of mypyc in the FAQ (#3002)
ichard26 Apr 10, 2022
abdc31c
Bump actions/upload-artifact from 2 to 3 (#3004)
dependabot[bot] Apr 11, 2022
40053b5
Quote "black[jupyter]" in README.md (#3007)
dignissimus Apr 11, 2022
911b59f
Bump furo from 2022.3.4 to 2022.4.7 in /docs (#3003)
dependabot[bot] Apr 11, 2022
96bd428
Quote black[jupyter] and black[d] in installation docs (#3006)
JelleZijlstra Apr 11, 2022
712f8b3
Make ipynb tests compatible with ipython 8.3.0+ (#3008)
MarcoGorelli Apr 13, 2022
7f7673d
Support 3.11 / PEP 654 syntax (#3016)
isidentical Apr 15, 2022
8ed3e3d
Updated Black Docker Hub link in docs (#3023)
JiriKr Apr 21, 2022
c6800e0
Fix strtobool function (#3025)
defntvdm Apr 28, 2022
fb8dfde
Stop pinning lark-parser (#3041)
cooperlees Apr 28, 2022
9d5edd3
Bump myst-parser from 0.16.1 to 0.17.2 in /docs (#3019)
dependabot[bot] May 2, 2022
c940f75
chore: Set permissions for GitHub actions (#3043)
naveensrinivasan May 3, 2022
9ce100b
Move imports of `ThreadPoolExecutor` into `reformat_many()`, allowing…
Zac-HD May 6, 2022
62c2b16
Docs: clarify fmt:on/off requirements (#2985) (#3048)
felix-hilden May 8, 2022
20d8ccb
Put closing quote on a separate line if docstring is too long (#3044)
idorrington92 May 8, 2022
fc2a164
Read simple data cases automatically (#3034)
saroad2 May 8, 2022
5d5b731
Bump docker/setup-qemu-action from 1 to 2 (#3056)
dependabot[bot] May 10, 2022
ba21a85
Bump docker/build-push-action from 2 to 3 (#3057)
dependabot[bot] May 10, 2022
4af87d8
Bump docker/login-action from 1 to 2 (#3059)
dependabot[bot] May 10, 2022
7f03313
Bump docker/setup-buildx-action from 1 to 2 (#3058)
dependabot[bot] May 10, 2022
2893c42
Remove hard coded test cases (#3062)
saroad2 May 18, 2022
fdb01f8
Document new Microsoft Black Formatter extension for VSCode (#3063)
laundmo May 21, 2022
9fe788d
Add more examples to exclude files in addition to the defaults (#3070)
ysk24ok May 26, 2022
1e55718
Implement support for PEP 646 (#3071)
isidentical May 26, 2022
436e12f
Add script to ease migration to black (#3038)
hbrunn Jun 1, 2022
f51e537
Fix minor typo (#3096)
vivekvashist Jun 3, 2022
6d32ab0
Bump pre-commit/action from 2.0.3 to 3.0.0 (#3108)
dependabot[bot] Jun 11, 2022
4bb7bf2
Remove newline after code block open (#3035)
saroad2 Jun 11, 2022
8c8675c
Update documentation dependencies (#3118)
ichard26 Jun 11, 2022
162ecd1
Use is_number_token instead of assertion (#3069)
MarcoGorelli Jun 11, 2022
799adb5
Bump actions/setup-python from 3 to 4 (#3121)
hugovk Jun 13, 2022
6c1bd08
Test run black on self (#3114)
saroad2 Jun 14, 2022
e3c9b04
Replace link to Requests documentation (#3125)
nateprewitt Jun 17, 2022
6463fb8
Bump sphinx from 5.0.1 to 5.0.2 in /docs (#3128)
dependabot[bot] Jun 20, 2022
fa6caa6
Only call get_future_imports when needed (#3135)
yilei Jun 23, 2022
d848209
Bump furo from 2022.6.4.1 to 2022.6.21 in /docs (#3138)
dependabot[bot] Jun 27, 2022
eb5d175
Update preview style docs to include recent changes (#3136)
felix-hilden Jun 27, 2022
f6c139c
Prepare docs for release 22.6.0 (#3139)
ichard26 Jun 28, 2022
6debce6
Fix typo in CHANGES.md (#3142)
dmerejkowsky Jun 28, 2022
b859a37
Use RTD's new build process and config (#3149)
Jackenmen Jul 3, 2022
7af77d1
Stability policy: permit exceptional changes for unformatted code (#3…
JelleZijlstra Jul 6, 2022
05b63c4
Recommend using BlackConnect in IntelliJ IDEs (#3150)
m-aciek Jul 11, 2022
18c17be
Copy over comments when hugging power ops (#2874)
ichard26 Jul 14, 2022
4f0532d
Don't (ever) put a single-char closing docstring quote on a new line …
ichard26 Jul 14, 2022
8900e3a
Add warning to not run blackd publicly in docs (#3167)
Panther-12 Jul 14, 2022
9aa33f4
Move to explicitly creating a new loop (#3164)
cooperlees Jul 14, 2022
ad5c315
Actually disable docstring prefix normalization with -S + fix instabi…
ichard26 Jul 14, 2022
b0eed7c
Fix typo in config docs for --extend-exclude (#3170)
onescriptkid Jul 14, 2022
df5a87d
configure strict pytest and filterwarnings=['error', ... (#3173)
graingert Jul 16, 2022
33f0d9e
Add pypy-3.8 to test matrix (#3174)
graingert Jul 17, 2022
1b6de7b
Improve warning filtering in tests (#3175)
graingert Jul 19, 2022
6ea4edd
Fix the handling of `# fmt: skip` when it's at a colon line (#3148)
yilei Jul 19, 2022
249c653
Fix an infinite loop when using `# fmt: on/off` ... (#3158)
yilei Jul 20, 2022
b4dc40b
Use underscores instead of a space in a test file's name (#3180)
yilei Jul 20, 2022
e9e756d
Bump sphinx from 5.0.2 to 5.1.0 in /docs (#3183)
dependabot[bot] Jul 27, 2022
e0a780a
Add isort to linting toolchain
ichard26 Jul 27, 2022
44d5da0
Reformat codebase with isort
ichard26 Jul 27, 2022
411ed77
Bump pre-commit hooks (#3191)
ichard26 Jul 28, 2022
ef8deb6
Consolidate test CI and add concurrency limits (#3189)
ichard26 Jul 28, 2022
4f1772e
Vim plugin: prefix messages with "Black: " (#3194)
tobast Jul 28, 2022
d85cf00
Remove blib2to3 grammar cache logging (#3193)
ichard26 Jul 30, 2022
eaa0489
Add sanity check to executable CD + more (#3190)
ichard26 Jul 30, 2022
ca0dbb8
Move fuzz.py to scripts/ (#3199)
ichard26 Jul 31, 2022
b776bf9
Bump sphinx from 5.1.0 to 5.1.1 in /docs (#3201)
dependabot[bot] Aug 1, 2022
f066e3f
makes install available for all users in docker image (#3202)
n-borges Aug 2, 2022
507234c
Remove invalid syntax in docstrings -S --preview test (#3205)
TomFryers Aug 2, 2022
6064a43
Use debug f-strings for feature detection (#3215)
hauntsaninja Aug 10, 2022
680cbe3
Use --no-implicit-optional for type checking (#3220)
hauntsaninja Aug 13, 2022
07b68e2
add preview option support for blackd (#3217)
Mogost Aug 13, 2022
e7b9671
Port & upstream mypyc wheel build workflow (#3197)
ichard26 Aug 13, 2022
4ebf14d
Strip trailing commas in subscripts with -C (#3209)
hauntsaninja Aug 13, 2022
6e0ad52
Update email (#3235)
ahrex Aug 20, 2022
59acf8a
Add passing 3.11 CI by exempting blackd tests (#3234)
cooperlees Aug 23, 2022
21218b6
Fix a string merging/split issue caused by standalone comments. (#3227)
yilei Aug 23, 2022
a5fde8a
Remove hacky subprocess call in action.yml (#3226)
ionite34 Aug 26, 2022
c47b91f
Fix misdetection of project root with `--stdin-filename` (#3216)
hauntsaninja Aug 26, 2022
e269f44
Lazily import parallelized format modules
ichard26 Aug 4, 2022
afed2c0
Load .gitignore and exclude regex at time of use
ichard26 Aug 5, 2022
c0cc19b
Delay worker count determination
ichard26 Aug 13, 2022
ba618a3
Add parens around implicit string concatenations where it increases r…
yilei Aug 31, 2022
2c90480
Use strict mypy checking (#3222)
hauntsaninja Aug 31, 2022
767604e
Use .gitignore files in the initial source directories (#3237)
martinResearch Aug 31, 2022
7757078
Improve & update release process to reflect recent changes (#3242)
ichard26 Aug 31, 2022
0019261
Update stable branch after publishing to PyPI (#3223)
ichard26 Aug 31, 2022
2018e66
Prepare docs for release 22.8.0 (#3248)
ichard26 Aug 31, 2022
095fe0d
docs: adds ExitStack alternative to future_style.md (#3247)
jsal13 Sep 1, 2022
92c93a2
Add preview flag to Vim plugin (#3246)
SyPeter Sep 1, 2022
062e644
Mitigate deprecation of aiohttp's `@middleware` decorator (#3259)
ichard26 Sep 5, 2022
383b228
Move 3.11 tests to install aiohttp without C extensions (#3258)
cooperlees Sep 5, 2022
72a2559
[FIX] migrate-black.py: don't fail on binary files (#3266)
hbrunn Sep 14, 2022
e2adcd7
Fix a crash on dicts with paren-wrapped long string keys (#3262)
yilei Sep 14, 2022
04bce6a
Improve order of paragraphs on line splitting (#3270)
TomFryers Sep 15, 2022
d852af7
Fix mypyc build errors on newer manylinux2014_x86_64 images (#3272)
zsol Sep 15, 2022
6ae8457
Bump furo from 2022.6.21 to 2022.9.15 in /docs (#3277)
dependabot[bot] Sep 19, 2022
75d5c0e
Build mypyc wheels for CPython 3.11 (#3276)
ichard26 Sep 23, 2022
4c99900
Make context manager examples in future style docs consistent (#3274)
Blandes22 Sep 23, 2022
bfc013a
Support version specifiers in GH action (#3265)
Jackenmen Sep 23, 2022
55db055
Fix a crash when `# fmt: on` is used on a different block level than …
yilei Sep 24, 2022
4b4680a
Make README logo link to docs (#3285)
stinodego Sep 25, 2022
468ceaf
Switch build backend to Hatchling (#3233)
ofek Sep 25, 2022
2189bca
Fix outdated references to 3.6 and run pyupgrade (#3286)
ichard26 Sep 26, 2022
af3de08
Always call freeze_support() if sys.frozen is True (#3275)
ichard26 Sep 26, 2022
42fdd1b
Bump actions/upload-artifact from 2 to 3 (#3289)
dependabot[bot] Sep 26, 2022
1f2ad77
Bump sphinx from 5.1.1 to 5.2.1 in /docs (#3288)
dependabot[bot] Sep 26, 2022
6b42c2b
Add option to format Jupyter Notebooks in GitHub Action (#3282)
aaossa Sep 26, 2022
096806e
Mention CHANGES.md in PR template explicitly (#3295)
raybellwaves Sep 29, 2022
ddb9924
Bump pypa/cibuildwheel from 2.10.0 to 2.10.2 (#3290)
dependabot[bot] Sep 29, 2022
141291a
Enable build isolation under CIWB (#3297)
ichard26 Sep 29, 2022
956bf39
Add .ipynb_checkpoints to DEFAULT_EXCLUDES (#3293)
raybellwaves Oct 2, 2022
b1077aa
Bump myst-parser from 0.18.0 to 0.18.1 in /docs (#3303)
dependabot[bot] Oct 3, 2022
980997f
Bump furo from 2022.9.15 to 2022.9.29 in /docs (#3304)
dependabot[bot] Oct 3, 2022
1a20c4d
Bump sphinx from 5.2.1 to 5.2.3 in /docs (#3305)
dependabot[bot] Oct 3, 2022
27d7ea4
Bump docutils from 0.18.1 to 0.19 in /docs (#3161)
dependabot[bot] Oct 3, 2022
0359b85
Preserve crlf line endings in blackd (#3257)
KotlinIsland Oct 4, 2022
4c1a9eb
bump from upstream
dwanderson-intel Oct 5, 2022
85d425f
Merge branch 'master' into bump-from-upstream
dwanderson-intel Oct 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ omit =
src/blib2to3/*
tests/data/*
*/site-packages/*
.tox/*

[run]
relative_files = True
6 changes: 1 addition & 5 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
[flake8]
ignore = E203, E266, E501, W503
# line length is intentionally set to 80 here because black uses Bugbear
# See https://github.com/psf/black/blob/master/README.md#line-length for more details
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
# We need to configure the mypy.ini because the flake8-mypy's default
# options don't properly override it, so if we don't specify it we get
# half of the config from mypy.ini and half from flake8-mypy.
mypy_config = mypy.ini
71 changes: 50 additions & 21 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,64 @@
---
name: Bug report
about: Create a report to help us improve
about: Create a report to help us improve Black's quality
title: ""
labels: bug
labels: "T: bug"
assignees: ""
---

**Describe the bug** A clear and concise description of what the bug is.
<!--
Please make sure that the bug is not already fixed either in newer versions or the
current development version. To confirm this, you have three options:

**To Reproduce** Steps to reproduce the behavior:
1. Update Black's version if a newer release exists: `pip install -U black`
2. Use the online formatter at <https://black.vercel.app/?version=main>, which will use
the latest main branch.
3. Or run _Black_ on your machine:
- create a new virtualenv (make sure it's the same Python version);
- clone this repository;
- run `pip install -e .[d]`;
- run `pip install -r test_requirements.txt`
- make sure it's sane by running `python -m pytest`; and
- run `black` like you did last time.
-->

1. Take this file '...'
2. Run _Black_ on it with these arguments '....'
3. See error
**Describe the bug**

**Expected behavior** A clear and concise description of what you expected to happen.
<!-- A clear and concise description of what the bug is. -->

**Environment (please complete the following information):**
**To Reproduce**

- Version: [e.g. master]
- OS and Python version: [e.g. Linux/Python 3.7.4rc1]
<!--
Minimal steps to reproduce the behavior with source code and Black's configuration.
-->

**Does this bug also happen on master?** To answer this, you have two options:
For example, take this code:

1. Use the online formatter at https://black.now.sh/?version=master, which will use the
latest master branch.
2. Or run _Black_ on your machine:
- create a new virtualenv (make sure it's the same Python version);
- clone this repository;
- run `pip install -e .`;
- make sure it's sane by running `python -m unittest`; and
- run `black` like you did last time.
```python
this = "code"
```

And run it with these arguments:

```sh
$ black file.py --target-version py39
```

The resulting error is:

> cannot format file.py: INTERNAL ERROR: ...

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

**Environment**

<!-- Please complete the following information: -->

- Black's version: <!-- e.g. [main] -->
- OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] -->

**Additional context**

**Additional context** Add any other context about the problem here.
<!-- Add any other context about the problem here. -->
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# See also: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser

# This is the default and blank issues are useful so let's keep 'em.
blank_issues_enabled: true

contact_links:
- name: Chat on Python Discord
url: https://discord.gg/RtVdv86PrH
about: |
User support, questions, and other lightweight requests can be
handled via the #black-formatter text channel we have on Python
Discord.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/docs-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Documentation
about: Report a problem with or suggest something for the documentation
title: ""
labels: "T: documentation"
assignees: ""
---

**Is this related to a problem? Please describe.**

<!-- A clear and concise description of what the problem is.
e.g. I'm always frustrated when [...] / I wished that [...] -->

**Describe the solution you'd like**

<!-- A clear and concise description of what you want to
happen or see changed. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any
alternative solutions or features you've considered. -->

**Additional context**

<!-- Add any other context or screenshots about the issue
here. -->
26 changes: 17 additions & 9 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@
name: Feature request
about: Suggest an idea for this project
title: ""
labels: enhancement
labels: "T: enhancement"
assignees: ""
---

**Is your feature request related to a problem? Please describe.** A clear and concise
description of what the problem is. Ex. I'm always frustrated when [...]
**Is your feature request related to a problem? Please describe.**

**Describe the solution you'd like** A clear and concise description of what you want to
happen.
<!-- A clear and concise description of what the problem is.
e.g. I'm always frustrated when [...] -->

**Describe alternatives you've considered** A clear and concise description of any
alternative solutions or features you've considered.
**Describe the solution you'd like**

**Additional context** Add any other context or screenshots about the feature request
here.
<!-- A clear and concise description of what you want to
happen. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any
alternative solutions or features you've considered. -->

**Additional context**

<!-- Add any other context or screenshots about the feature request
here. -->
22 changes: 15 additions & 7 deletions .github/ISSUE_TEMPLATE/style_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,36 @@
name: Style issue
about: Help us improve the Black style
title: ""
labels: design
labels: "T: design"
assignees: ""
---

**Describe the style change** A clear and concise description of how the style can be
improved.
**Describe the style change**

**Examples in the current _Black_ style** Think of some short code snippets that show
how the current _Black_ style is not great:
<!-- A clear and concise description of how the style can be
improved. -->

**Examples in the current _Black_ style**

<!-- Think of some short code snippets that show
how the current _Black_ style is not great: -->

```python
def f():
"Make sure this code is blackened"""
pass
```

**Desired style** How do you think _Black_ should format the above snippets:
**Desired style**

<!-- How do you think _Black_ should format the above snippets: -->

```python
def f(
):
pass
```

**Additional context** Add any other context about the problem here.
**Additional context**

<!-- Add any other context about the problem here. -->
36 changes: 36 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!-- Hello! Thanks for submitting a PR. To help make things go a bit more
smoothly we would appreciate that you go through this template. -->

### Description

<!-- Good things to put here include: reasoning for the change (please link
any relevant issues!), any noteworthy (or hacky) choices to be aware of,
or what the problem resolved here looked like ... we won't mind a ranty
story :) -->

### Checklist - did you ...

<!-- If any of the following items aren't relevant for your contribution
please still tick them so we know you've gone through the checklist.

All user-facing changes should get an entry. Otherwise, signal to us
this should get the magical label to silence the CHANGELOG entry check.
Tests are required for bugfixes and new features. Documentation changes
are necessary for formatting and most enhancement changes. -->

- [ ] Add an entry in `CHANGES.md` if necessary?
- [ ] Add / update tests if necessary?
- [ ] Add new / update outdated documentation?

<!-- Just as a reminder, everyone in all psf/black spaces including PRs
must follow the PSF Code of Conduct (link below).

Finally, once again thanks for your time and effort. If you have any
feedback in regards to your experience contributing here, please
let us know!

Helpful links:

PSF COC: https://www.python.org/psf/conduct/
Contributing docs: https://black.readthedocs.io/en/latest/contributing/index.html
Chat on Python Discord: https://discord.gg/RtVdv86PrH -->
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
# Workflow files in .github/workflows will be checked
directory: "/"
schedule:
interval: "weekly"
labels: ["skip news", "C: dependencies"]

- package-ecosystem: "pip"
directory: "docs/"
schedule:
interval: "weekly"
labels: ["skip news", "C: dependencies", "T: documentation"]
reviewers: ["ichard26"]
24 changes: 24 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: changelog

on:
pull_request:
types: [opened, synchronize, labeled, unlabeled, reopened]

permissions:
contents: read

jobs:
build:
name: Changelog Entry Check

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Grep CHANGES.md for PR number
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
run: |
grep -Pz "\((\n\s*)?#${{ github.event.pull_request.number }}(\n\s*)?\)" CHANGES.md || \
(echo "Please add '(#${{ github.event.pull_request.number }})' change line to CHANGES.md (or if appropriate, ask a maintainer to add the 'skip news' label)" && \
exit 1)
Loading