forked from pool/python-black
Accepting request 639753 from home:mimi_vx:branches:devel:languages:python
- update to 18.9b0
* numeric literals are now formatted by Black
* numeric literals are normalized to include _ separators on Python 3.6+ code
* added --skip-numeric-underscore-normalization to disable the above behavior
and leave numeric underscores as they were in the input
* code with _ in numeric literals is recognized as Python 3.6+
* most letters in numeric literals are lowercased (e.g., in 1e10, 0x01)
* hexadecimal digits are always uppercased (e.g. 0xBADC0DE)
* added blackd, see its documentation for more info
* adjacent string literals are now correctly split into multiple lines
* trailing comma is now added to single imports that don't fit on a line
* cache is now populated when --check is successful for a file which
speeds up consecutive checks of properly formatted unmodified files
* whitespace at the beginning of the file is now removed
* fixed mangling pweave and Spyder IDE special comments
* fixed unstable formatting when unpacking big tuples
* fixed parsing of __future__ imports with renames
* fixed scope of # fmt: off when directly preceding yield and other nodes
* fixed formatting of lambda expressions with default arguments
* fixed async for statements: Black no longer breaks them into separate lines
* note: the Vim plugin stopped registering ,= as a default chord
as it turned out to be a bad idea
OBS-URL: https://build.opensuse.org/request/show/639753
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-black?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
b27cd63cf5
commit
2c41e095e5
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:22158b89c1a6b4eb333a1e65e791a3f8b998cf3b11ae094adb2570f31f769a44
|
||||
size 141556
|
||||
3
black-18.9b0.tar.gz
Normal file
3
black-18.9b0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e030a9a28f542debc08acceb273f228ac422798e5215ba2a791a6ddeaaca22a5
|
||||
size 151371
|
||||
@@ -1,3 +1,29 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 3 12:40:28 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 18.9b0
|
||||
* numeric literals are now formatted by Black
|
||||
* numeric literals are normalized to include _ separators on Python 3.6+ code
|
||||
* added --skip-numeric-underscore-normalization to disable the above behavior
|
||||
and leave numeric underscores as they were in the input
|
||||
* code with _ in numeric literals is recognized as Python 3.6+
|
||||
* most letters in numeric literals are lowercased (e.g., in 1e10, 0x01)
|
||||
* hexadecimal digits are always uppercased (e.g. 0xBADC0DE)
|
||||
* added blackd, see its documentation for more info
|
||||
* adjacent string literals are now correctly split into multiple lines
|
||||
* trailing comma is now added to single imports that don't fit on a line
|
||||
* cache is now populated when --check is successful for a file which
|
||||
speeds up consecutive checks of properly formatted unmodified files
|
||||
* whitespace at the beginning of the file is now removed
|
||||
* fixed mangling pweave and Spyder IDE special comments
|
||||
* fixed unstable formatting when unpacking big tuples
|
||||
* fixed parsing of __future__ imports with renames
|
||||
* fixed scope of # fmt: off when directly preceding yield and other nodes
|
||||
* fixed formatting of lambda expressions with default arguments
|
||||
* fixed async for statements: Black no longer breaks them into separate lines
|
||||
* note: the Vim plugin stopped registering ,= as a default chord
|
||||
as it turned out to be a bad idea
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 29 10:31:11 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
|
||||
@@ -12,30 +12,32 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-black
|
||||
Version: 18.6b4
|
||||
Version: 18.9b0
|
||||
Release: 0
|
||||
Summary: A code formatter written in, and written for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ambv/black
|
||||
Source: https://files.pythonhosted.org/packages/source/b/black/black-%{version}.tar.gz
|
||||
BuildRequires: %{python_module aiohttp >= 3.3.2}
|
||||
BuildRequires: %{python_module appdirs}
|
||||
BuildRequires: %{python_module attrs >= 17.4.0}
|
||||
BuildRequires: %{python_module attrs >= 18.1.0}
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module click >= 6.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module toml >= 0.9.4}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-aiohttp >= 3.3.2
|
||||
Requires: python-appdirs
|
||||
Requires: python-attrs >= 17.4.0
|
||||
Requires: python-attrs >= 18.1.0
|
||||
Requires: python-click >= 6.5
|
||||
Requires: python-toml >= 0.9.4
|
||||
BuildArch: noarch
|
||||
@@ -71,6 +73,7 @@ rm -rf %{pypi_name}.egg-info
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%python3_only %{_bindir}/black
|
||||
%python3_only %{_bindir}/blackd
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user