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

chore(python_notebooks): update dependency black to v22 #1396

Merged
merged 1 commit into from Apr 1, 2022

Conversation

renovate-bot
Copy link
Contributor

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
black (changelog) ==21.8b0 -> ==22.3.0 age adoption passing confidence

Release Notes

psf/black

v22.3.0

Compare Source

Preview style
  • Code cell separators #%% are now standardised to # %% (#​2919)
  • Remove unnecessary parentheses from except statements (#​2939)
  • Remove unnecessary parentheses from tuple unpacking in for loops (#​2945)
  • Avoid magic-trailing-comma in single-element subscripts (#​2942)
Configuration
  • Do not format __pypackages__ directories by default (#​2836)
  • Add support for specifying stable version with --required-version (#​2832).
  • Avoid crashing when the user has no homedir (#​2814)
  • Avoid crashing when md5 is not available (#​2905)
  • Fix handling of directory junctions on Windows (#​2904)
Documentation
  • Update pylint config documentation (#​2931)
Integrations
  • Move test to disable plugin in Vim/Neovim, which speeds up loading (#​2896)
Output
  • In verbose, mode, log when Black is using user-level config (#​2861)
Packaging
  • Fix Black to work with Click 8.1.0 (#​2966)
  • On Python 3.11 and newer, use the standard library's tomllib instead of tomli
    (#​2903)
  • black-primer, the deprecated internal devtool, has been removed and copied to a
    separate repository (#​2924)
Parser
  • Black can now parse starred expressions in the target of for and async for
    statements, e.g for item in *items_1, *items_2: pass (#​2879).

v22.1.0

Compare Source

At long last, Black is no longer a beta product! This is the first non-beta release
and the first release covered by our new
stability policy.

Highlights
Style
  • Deprecate --experimental-string-processing and move the functionality under
    --preview (#​2789)
  • For stubs, one blank line between class attributes and methods is now kept if there's
    at least one pre-existing blank line (#​2736)
  • Black now normalizes string prefix order (#​2297)
  • Remove spaces around power operators if both operands are simple (#​2726)
  • Work around bug that causes unstable formatting in some cases in the presence of the
    magic trailing comma (#​2807)
  • Use parentheses for attribute access on decimal float and int literals (#​2799)
  • Don't add whitespace for attribute access on hexadecimal, binary, octal, and complex
    literals (#​2799)
  • Treat blank lines in stubs the same inside top-level if statements (#​2820)
  • Fix unstable formatting with semicolons and arithmetic expressions (#​2817)
  • Fix unstable formatting around magic trailing comma (#​2572)
Parser
  • Fix mapping cases that contain as-expressions, like case {"key": 1 | 2 as password}
    (#​2686)
  • Fix cases that contain multiple top-level as-expressions, like case 1 as a, 2 as b
    (#​2716)
  • Fix call patterns that contain as-expressions with keyword arguments, like
    case Foo(bar=baz as quux) (#​2749)
  • Tuple unpacking on return and yield constructs now implies 3.8+ (#​2700)
  • Unparenthesized tuples on annotated assignments (e.g
    values: Tuple[int, ...] = 1, 2, 3) now implies 3.8+ (#​2708)
  • Fix handling of standalone match() or case() when there is a trailing newline or a
    comment inside of the parentheses. (#​2760)
  • from __future__ import annotations statement now implies Python 3.7+ (#​2690)
Performance
  • Speed-up the new backtracking parser about 4X in general (enabled when
    --target-version is set to 3.10 and higher). (#​2728)
  • Black is now compiled with mypyc for an overall 2x
    speed-up. 64-bit Windows, MacOS, and Linux (not including musl) are supported. (#​1009,
    #​2431)
Configuration
  • Do not accept bare carriage return line endings in pyproject.toml (#​2408)
  • Add configuration option (python-cell-magics) to format cells with custom magics in
    Jupyter Notebooks (#​2744)
  • Allow setting custom cache directory on all platforms with environment variable
    BLACK_CACHE_DIR (#​2739).
  • Enable Python 3.10+ by default, without any extra need to specify
    --target-version=py310. (#​2758)
  • Make passing SRC or --code mandatory and mutually exclusive (#​2804)
Output
  • Improve error message for invalid regular expression (#​2678)
  • Improve error message when parsing fails during AST safety check by embedding the
    underlying SyntaxError (#​2693)
  • No longer color diff headers white as it's unreadable in light themed terminals
    (#​2691)
  • Text coloring added in the final statistics (#​2712)
  • Verbose mode also now describes how a project root was discovered and which paths will
    be formatted. (#​2526)
Packaging
  • All upper version bounds on dependencies have been removed (#​2718)
  • typing-extensions is no longer a required dependency in Python 3.10+ (#​2772)
  • Set click lower bound to 8.0.0 (#​2791)
Integrations
  • Update GitHub action to support containerized runs (#​2748)
Documentation
  • Change protocol in pip installation instructions to https:// (#​2761)
  • Change HTML theme to Furo primarily for its responsive design and mobile support
    (#​2793)
  • Deprecate the black-primer tool (#​2809)
  • Document Python support policy (#​2819)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate-bot renovate-bot requested a review from a team April 1, 2022 15:59
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 1, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 1, 2022
@parthea parthea changed the title chore(deps): update dependency black to v22 chore(python_notebooks): update dependency black to v22 Apr 1, 2022
@parthea parthea merged commit 98394f3 into googleapis:master Apr 1, 2022
@renovate-bot renovate-bot deleted the renovate/black-22.x branch April 1, 2022 16:35
parthea added a commit that referenced this pull request Apr 20, 2022
* adding notebook template function

* changing template path

* changing template path

* chore: add googleapis/yoshi-python to CODEOWNERS (#1380)

* chore(python): add E231 to .flake8 ignore list (#1379)

* chore: Enable Size-Label bot in all googleapis Python notebook testing (#1384)

* chore: Enable Size-Label bot in all googleapis Python notebook testing repositories

Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Python notebook testing repositories

* Remove product 

Remove product since it is by default true

* chore(python): Enable size-label bot (#1383)

* chore: Enable Size-Label bot in all googleapis Python repositories

Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Python repositories

* Remove product 

Remove product since it is by default true

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(python): update .pre-commit-config.yaml to use black==22.3.0 (#1378)

Co-authored-by: Tim Swast <swast@google.com>

* chore(python): Enable size-label bot (#1385)

* chore: remove dependency on google-api-core (#1372)

* chore(deps): update dependency google-api-core to v2.7.1

* chore: remove dependency on google-api-core

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency numpy to v1.22.3 (#1387)

* chore(deps): disable dependency dashboard (#1223)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency pandas to v1.4.1 (#1258)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* build(deps): bump ipython (#1336)

Bumps [ipython](https://github.com/ipython/ipython) from 7.0 to 7.16.3.
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](ipython/ipython@7.0.0...7.16.3)

---
updated-dependencies:
- dependency-name: ipython
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: remove use of googleapis-discovery (#1280)

* chore: remove use of googleapis-discovery

* remove constant and method for googleapis-discovery

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore: add classifiers for python 3.7, 3.8 and 3.9 (#1247)

added Support for python 3.7, 3.8, 3.9

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(python): refactor unit / system test dependency install (#1294)

* chore(python): refactor unit / system test dependency install

Closes #1185.

* chore: use editable installs for local deps

* chore: don't install deps using '-e'

* chore: deprecate 'unit_test_external_dependencies'

* fix: install standard + main unit test deps together

FBO pip resolver.

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(python_notebooks): update dependency black to v22 (#1396)

* chore(deps): update dependency ipython to v8 (#1397)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore: Enable Size-Label bot in all googleapis NodeJs repositories (#1382)

* chore: Enable Size-Label bot in all googleapis NodeJs repositories

Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis NodeJs repositories

* Remove product

Remove product since it is by default true

* chore(deps): update dependency setuptools to v61 (#1398)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.12 (#1388)

Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>

* ci: update testing pipeline for notebooks (#1345)

* update testing pipeline

* kokoro fix

* fixing linting errors

* Update synthtool/gcp/templates/python_notebooks_testing_pipeline/.cloud-build/execute_changed_notebooks_cli.py

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* Update synthtool/gcp/templates/python_notebooks_testing_pipeline/.cloud-build/execute_changed_notebooks_cli.py

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* resolving license year

* removing redundant print statements

* adding developer todos

* reverting protos

* resetting protos to main

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update actions/setup-python action to v3 (#1395)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore: upgrade black in noxfile.py to 22.3.0 (#1377)

* chore: upgrade black to 22.3.0

* update lint also

* run blacken session

* ci: use click>8.0 for blacken/lint sessions

* chore: fix typo

Co-authored-by: nicain <nicholascain@google.com>

* rebase error

Co-authored-by: nicain <nicholascain@google.com>

* chore(deps): update dependency pandas to v1.4.2 (#1400)

* chore(deps): update dependency setuptools to v61.3.1 (#1399)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency nbqa to v1.3.1 (#1391)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency protobuf to v3.19.4 (#1389)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency protobuf to v3.20.0 (#1403)

* chore(deps): update dependency setuptools to v62 (#1406)

* chore(python): Use python 3.10.4 base image for post processor (#1405)

* chore(deps): update actions/setup-node action to v3 (#1393)

Co-authored-by: Jeffrey Rennie <rennie@google.com>

* chore(python): add license header to auto-label.yaml (#1404)

* chore: improve logic to configure release-please for previous major versions (#1408)

* fix: allow version.py files without the library version

* chore: remove obsolete file

* chore: run black

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore: Enable Size-Label bot in all googleapis Java repositories (#1381)

* chore: Enable Size-Label bot in all googleapis Java repositories

Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories

* Remove product 

Remove product since it is by default true

* add license header

Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>

* chore(deps): update actions/checkout action to v3 (#1392)

Co-authored-by: Jeffrey Rennie <rennie@google.com>

* chore: run tests with Python 3.10 (#1407)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>

* chore(deps): update dependency python to v3.10.4 (#1386)

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>

* fix: clarify the gax-nodejs usage in README (#1352)

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>

* Revert "fix: clarify the gax-nodejs usage in README (#1352)" (#1409)

This reverts commit e1557e4.

* chore(deps): update dependency pyupgrade to v2.32.0 (#1412)

* chore(deps): update dependency nbconvert to v6.5.0 (#1414)

* build: make ci testing conditional on engines field in package.json, move configs to Node 12 (#1418)

* build: make ci testing conditional on engines field in package.json, move configs to Node 12

Co-authored-by: Benjamin E. Coe <bencoe@google.com>

* build: sdd srs yaml file (#1419)

* build: add sync-repo-settings and change branch protection

* update names for template

* adding type annotation

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: losalex <90795544+losalex@users.noreply.github.com>
Co-authored-by: Tim Swast <swast@google.com>
Co-authored-by: WhiteSource Renovate <bot@renovateapp.com>
Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brent Shaffer <betterbrent@google.com>
Co-authored-by: Anurag Kumar <mailanu98@gmail.com>
Co-authored-by: Tres Seaver <tseaver@palladion.com>
Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
Co-authored-by: nicain <nicholascain@google.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>
Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
Co-authored-by: Summer Ji <summerji@google.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants