- Update to 0.32.0:
- Look at the 'pyproject.toml' file to see if it contains ignore file information for YAPF. - New entry point `yapf_api.FormatTree` for formatting lib2to3 concrete syntax trees. - Change tests to support "pytest". - Reformat so that "flake8" is happy. - Clean up the FormatToken interface to limit how much it relies upon the pytree node object. - Rename "unwrapped_line" module to "logical_line." - Rename "UnwrappedLine" class to "LogicalLine." - Added pyproject extra to install toml package as an optional dependency. - Enable `BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF` knob for "pep8" style, so method definitions inside a class are surrounded by a single blank line as prescribed by PEP8. - Fixed the '...' token to be spaced after a colon. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=20
This commit is contained in:
parent
5b6ff8d07b
commit
b30211b28e
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 4 11:45:36 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.32.0:
|
||||||
|
- Look at the 'pyproject.toml' file to see if it contains ignore file information
|
||||||
|
for YAPF.
|
||||||
|
- New entry point `yapf_api.FormatTree` for formatting lib2to3 concrete
|
||||||
|
syntax trees.
|
||||||
|
- Change tests to support "pytest".
|
||||||
|
- Reformat so that "flake8" is happy.
|
||||||
|
- Clean up the FormatToken interface to limit how much it relies upon the
|
||||||
|
pytree node object.
|
||||||
|
- Rename "unwrapped_line" module to "logical_line."
|
||||||
|
- Rename "UnwrappedLine" class to "LogicalLine."
|
||||||
|
- Added pyproject extra to install toml package as an optional dependency.
|
||||||
|
- Enable `BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF` knob for "pep8" style, so
|
||||||
|
method definitions inside a class are surrounded by a single blank line as
|
||||||
|
prescribed by PEP8.
|
||||||
|
- Fixed the '...' token to be spaced after a colon.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 17 06:43:41 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Sat Jul 17 06:43:41 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-yapf
|
# spec file for package python-yapf
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-yapf
|
Name: python-yapf
|
||||||
Version: 0.31.0
|
Version: 0.32.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A formatter for Python code
|
Summary: A formatter for Python code
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -65,10 +65,10 @@ be reformatted.
|
|||||||
%pytest --capture=no
|
%pytest --capture=no
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative yapf
|
%python_install_alternative yapf yapf-diff
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative yapf
|
%python_uninstall_alternative yapf yapf-diff
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:408fb9a2b254c302f49db83c59f9aa0b4b0fd0ec25be3a5c51181327922ff63d
|
|
||||||
size 192584
|
|
3
yapf-0.32.0.tar.gz
Normal file
3
yapf-0.32.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a3f5085d37ef7e3e004c4ba9f9b3e40c54ff1901cd111f05145ae313a7c67d1b
|
||||||
|
size 194820
|
Loading…
x
Reference in New Issue
Block a user