15
0
Commit Graph

20 Commits

Author SHA256 Message Date
e4c5c5e267 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=41
2025-05-27 11:51:28 +00:00
043deba6c0 - update to 24.2.6:
* B902: Remove decorators named validator and root_validator
    from B902 checks
  * B038: Change B038 to B909 and make it optional

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=39
2024-03-25 17:50:34 +00:00
1d912882d2 - update to 24.1.17:
* B038: Restrict rule to mutation functions only
- update to 24.1.16:
  * B036: Fix crash on ``raise`` statements raising something
    other than
- update to 24.1.15:
  * B038: Add check for mutations of loop iterator
  * B037: Add check for yielding or returning values in
    __init__()
  * B017: make B017 also apply to BaseException
  * B036: Add check for except BaseException without re-raising

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=37
2024-01-20 13:07:44 +00:00
0439302bc1 - update to 23.12.2:
* B018: to detect useless-statements at all levels (#434)
  * B018: Add classname to b018 useless-expression output (#433)
  * B018: Include tuples in b018 useless-statement check (#432)
- update to 23.11.28:
  * B035: Fix false positive when named expressions are used
    (#430)
- update to 23.11.26:
  * B035: add check for static keys in dict-comprehension (#426)
  * B902: Add exceptions for standard library metaclasses (#415)
  * B017: Modify to no longer have a false negative when raises()
    is imported directly from pytest (#424)
  * B026: Fix bug where the check was not triggered for calls
    where the caller is an attribute (#420)
    * Black all the .py files - Like one should (#48)
    * Fix pathlib link in readme (#36)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=35
2023-12-04 21:34:04 +00:00
85c920a7ae - update to 23.9.16:
* add --classmethod-decorators (#405)
  * fix name collision for node_stack on python 3.12 (#406)
  * Use pypa/build to build the package (#404)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=33
2023-09-18 06:55:26 +00:00
89b1c4e6f7 - update to 23.7.10:
* Add B034: re.sub/subn/split must pass flags/count/maxsplit as
    keyword arguments.
  * Fix a crash and several test failures on Python 3.12, all
    relating to the B907 * check.
  * Declare support for Python 3.12.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=31
2023-07-11 14:10:58 +00:00
1113bc72dd - update to 23.6.5:
* Include tox.ini in MANIFEST.in for sdist.
  * Improve B033 (duplicate set items)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=29
2023-06-11 09:19:58 +00:00
c3c084906c - update to 23.5.9:
* Add B033: Detect duplicate items in sets
  * Add B908: Detect assertRauses like contexts only has top
    level statements that could throw
  * Add B028: Allow stacklevel to be explicitly assigned as a
    positional argument
  * Remove more < 3.8 checks / assertions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=27
2023-05-18 07:02:59 +00:00
78a6f85096 - add sle15_python_module_pythons (jsc#PED-68)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=25
2023-04-28 08:05:19 +00:00
b23a68860e - update to 23.2.13:
* B906: Add visit_Bytes, visit_Num and visit_Str to
    the list of visit_* functions that are ignored by the B906
    check.
  * B016: Warn when raising f-strings.
  * Add B028: Check for an explicit stacklevel keyword argument
    on the warn method from the warnings module.
  * Add B029: Check when trying to use ``except`` with an empty
    tuple i.e. ``except: ()``.
  * Add B032: Check for possible unintentional type annotations
    instead of assignments.
  * B024: now ignores classes without any methods. (#336)
  * B017: Don't warn when ``pytest.raises()`` has a ``match``
    argument. (#334)
  * B906: Ignore ``visit_`` functions with a ``_fields``
    attribute that can't contain ast.AST subnodes. (#330)
  * Rename B028 to B907, making it optional/opinionated.
  * Add B906: ``visit_`` function with no further calls to a
    ``visit`` function. (#313)
  * Add B028: Suggest ``!r`` when formatted value in f-string is
    surrounded by quotes. (#319)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=23
2023-02-15 19:46:01 +00:00
1a1c900fb9 - update to 22.12.6 (bsc#1206225):
* Add B905: `zip()` without an explicit `strict=` parameter. (#314)
  * B027: ignore @overload when typing is imported with other names (#309)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=21
2022-12-15 21:01:52 +00:00
39f6178aaf Accepting request 1031463 from home:marxin:branches:devel:languages:python
- Update to 22.10.27:
  * B027: Ignore @overload decorator (#306)
  * B023: Also fix map (#305)
  * B023: Avoid false alarms with filter, reduce, key= and return. Added tests for functools (#303)

OBS-URL: https://build.opensuse.org/request/show/1031463
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=19
2022-10-27 07:54:02 +00:00
20d9070a37 Accepting request 1031270 from home:marxin:branches:devel:languages:python
- Update to 22.10.25:
  * Make B015 and B018 messages slightly more polite (#298)
  * Add B027: Empty method in abstract base class with no abstract decorator
  * Multiple B024 false positive fixes
  * Move CI to use tox (#294)
  * Move to using PEP621 / pyproject.toml package (#291)
  * Tested in 3.11

OBS-URL: https://build.opensuse.org/request/show/1031270
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=17
2022-10-26 08:54:58 +00:00
1576eaf4f0 Accepting request 999682 from home:marxin:branches:devel:languages:python
- Update 22.8.23:
  * Add B024 error code to message for B024 (#276)
  * Add B024: abstract base class with no abstract methods (#273)
  * Implement late-binding loop check (#265)
  * late-binding closures are a classic gotcha.
  * Don't crash when select / extend_select are None (#261)
  * Ignore lambda arguments for B020 (#259)
  * Fix missing space typos in B021, B022 error messages (#257)
  * Ignore black formatting for b013 test case (#251)
  * B010 Fix lambda flase positive (#246)
  * B008 Fix edge case with lambda functions (#243)
  * B006 and B008: Detect function calls at any level of the default expression (#239)
  * B020: Fix comprehension false postives (#238)
  * Tweak B019 desc (#237)
  * B022: No arguments passed to contextlib.suppress (#231)
  * B021: f-string used as docstring. (#230)
  * B020: ensure loop control variable doesn't overrides iterable it iterates (#220)
  * B019: check to find cache decorators on class methods (#218)
  * Fix crash on long empty string (#223)
  * B018: Ignore JoinedStr (#216)
  * Build universal Python 3 wheels (#214)
  * B950: Add same special cases as E501 (#213)
  * B018: Disable strings from check for now (#209)
  * B904: ensure the raise is in the same context with the except (#191)
  * Add Option to extend the list of immutable calls (#204)
  * Update B014: binascii.Error is now treated as a subclass of ValueError (#206)
  * add simple pre-commit config (#205)
  * Test with 3.10 official
  * Add B018 check to find useless declarations (#196, #202)
  * Fix crash on call in except statement in _to_name_str (#187)

OBS-URL: https://build.opensuse.org/request/show/999682
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=15
2022-08-29 09:41:10 +00:00
Tomáš Chvátal
1ec54514b3 - Update to 20.1.4:
* Ignore keywords for B009/B010
  * Silence B009/B010 for non-identifiers
  * State an ignore might be needed for optional B9x checks
  * Fix error on attributes-of-attributes in except (...): clauses
  * Allow continue/break within loops in finally clauses for B012
  * For B001, also check for except ():
  * Introduce B013 and B014 to check tuples in except (..., ): statements
  * Warn about continue/return/break in finally block (#100)
  * Removed a colon from the descriptive message in B008. (#96)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=13
2020-04-16 11:16:35 +00:00
Tomáš Chvátal
59fa456658 - Update to 19.8.0:
* Fix .travis.yml syntax + add Python 3.8 + nightly tests
  * Fix black formatting + enforce via CI
  * Make B901 not apply to __await__ methods

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=11
2019-09-13 07:41:59 +00:00
Tomáš Chvátal
ab5573ce7f - Update to 19.3.0:
* allow 'mcs' for metaclass classmethod first arg (PyCharm default)
  * Introduce B011
  * Introduce B009 and B010
  * Exclude immutable calls like tuple() and frozenset() from B008
  * For B902, the first argument for metaclass class methods can be "mcs", matching the name preferred by PyCharm.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=9
2019-04-01 13:31:42 +00:00
Tomáš Chvátal
009964884e Accepting request 646131 from home:mcepl:work
- Update to 18.8.0:
    * Exclude immutable calls like tuple() and frozenset() from B008
    * Examine kw-only args for mutable defaults
    * Black all the .py files - Like one should (#48) 
    * Add testing and document support for the Python 3.7 release
    * Avoid adding the visitor as an __init__ parameter (Fixes #39)
      (#40)
    * Add trove classifier 'Programming Language :: Python :: 3 :: Only'
    * Fix pathlib link in readme (#36)

OBS-URL: https://build.opensuse.org/request/show/646131
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-bugbear?expand=0&rev=7
2018-11-04 09:33:52 +00:00
74442292f8 Accepting request 623630 from devel:languages:python
- This module requires py3.5+ thus restrict the build

OBS-URL: https://build.opensuse.org/request/show/623630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8-bugbear?expand=0&rev=2
2018-07-18 20:57:11 +00:00
768173f45d Accepting request 621905 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/621905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8-bugbear?expand=0&rev=1
2018-07-12 07:18:32 +00:00