mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
flake8: pycodestyle>=2.4 support
This commit is contained in:
parent
5688dcdf51
commit
64cd7334da
2 changed files with 57 additions and 4 deletions
55
srcpkgs/flake8/patches/pycodestyle-2.4.patch
Normal file
55
srcpkgs/flake8/patches/pycodestyle-2.4.patch
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
https://gitlab.com/pycqa/flake8/merge_requests/230
|
||||||
|
https://gitlab.com/pycqa/flake8/merge_requests/231
|
||||||
|
|
||||||
|
--- setup.cfg.orig
|
||||||
|
+++ setup.cfg
|
||||||
|
@@ -9,7 +9,7 @@
|
||||||
|
enum34; python_version<"3.4"
|
||||||
|
configparser; python_version<"3.2"
|
||||||
|
pyflakes >= 1.5.0, < 1.7.0
|
||||||
|
- pycodestyle >= 2.0.0, < 2.4.0
|
||||||
|
+ pycodestyle >= 2.4.0, < 2.5.0
|
||||||
|
mccabe >= 0.6.0, < 0.7.0
|
||||||
|
|
||||||
|
[egg_info]
|
||||||
|
--- setup.py.orig
|
||||||
|
+++ setup.py
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
# And in which releases we will update those ranges here:
|
||||||
|
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
|
||||||
|
"pyflakes >= 1.5.0, < 1.7.0",
|
||||||
|
- "pycodestyle >= 2.0.0, < 2.4.0",
|
||||||
|
+ "pycodestyle >= 2.4.0, < 2.5.0",
|
||||||
|
"mccabe >= 0.6.0, < 0.7.0",
|
||||||
|
"setuptools >= 30",
|
||||||
|
]
|
||||||
|
@@ -108,7 +108,8 @@
|
||||||
|
PEP8_PLUGIN('module_imports_on_top_of_file'),
|
||||||
|
PEP8_PLUGIN('compound_statements'),
|
||||||
|
PEP8_PLUGIN('explicit_line_join'),
|
||||||
|
- PEP8_PLUGIN('break_around_binary_operator'),
|
||||||
|
+ PEP8_PLUGIN('break_after_binary_operator'),
|
||||||
|
+ PEP8_PLUGIN('break_before_binary_operator'),
|
||||||
|
PEP8_PLUGIN('comparison_to_singleton'),
|
||||||
|
PEP8_PLUGIN('comparison_negative'),
|
||||||
|
PEP8_PLUGIN('comparison_type'),
|
||||||
|
@@ -118,6 +119,8 @@
|
||||||
|
PEP8_PLUGIN('python_3000_raise_comma'),
|
||||||
|
PEP8_PLUGIN('python_3000_not_equal'),
|
||||||
|
PEP8_PLUGIN('python_3000_backticks'),
|
||||||
|
+ PEP8_PLUGIN('python_3000_invalid_escape_sequence'),
|
||||||
|
+ PEP8_PLUGIN('python_3000_async_await_keywords'),
|
||||||
|
],
|
||||||
|
'flake8.report': [
|
||||||
|
'default = flake8.formatting.default:Default',
|
||||||
|
--- tox.ini.orig
|
||||||
|
+++ tox.ini
|
||||||
|
@@ -141,7 +141,7 @@
|
||||||
|
# defaults to selecting all other errors so we do not need select=E,F,W,I,D
|
||||||
|
# Once Flake8 3.0 is released and in a good state, we can use both and it will
|
||||||
|
# work well \o/
|
||||||
|
-ignore = D203
|
||||||
|
+ignore = D203, W504
|
||||||
|
exclude =
|
||||||
|
.tox,
|
||||||
|
.git,
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'flake8'
|
# Template file for 'flake8'
|
||||||
pkgname=flake8
|
pkgname=flake8
|
||||||
version=3.5.0
|
version=3.5.0
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="flake8"
|
pycompile_module="flake8"
|
||||||
|
@ -17,9 +17,7 @@ checksum=7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0
|
||||||
alternatives="flake8:flake8:/usr/bin/python2-flake8"
|
alternatives="flake8:flake8:/usr/bin/python2-flake8"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i setup.py \
|
sed -i '/setup_requires/d' setup.py
|
||||||
-e 's/, *< *[0-9=.]*//' \
|
|
||||||
-e '/setup_requires/d'
|
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue