Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PyCQA/flake8-bugbear
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 22.1.11
Choose a base ref
...
head repository: PyCQA/flake8-bugbear
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 22.4.25
Choose a head ref
  • 20 commits
  • 14 files changed
  • 9 contributors

Commits on Jan 27, 2022

  1. Add B020 check to find for-loop control variable overiding iter set (#…

    …220)
    
    * Implement rule B020: for-loop control variable overrides iter set
    
    * Update tests/b020.py
    
    Co-authored-by: Cooper Lees <me@cooperlees.com>
    Korben11 and cooperlees authored Jan 27, 2022
    Configuration menu
    Copy the full SHA
    f1d1a53 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2022

  1. Configuration menu
    Copy the full SHA
    d479f5a View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2022

  1. Fix typo (#226)

    kianmeng authored Mar 10, 2022
    Configuration menu
    Copy the full SHA
    3206da7 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2022

  1. B021: f-string used as docstring. (#230)

    * B021: f-string used as docstring.
    
    * Update README.rst
    
    * Update bugbear.py
    
    Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
    
    * There are more docstrings than just triple double quotes!
    
    Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
    jpy-git and Zac-HD authored Mar 20, 2022
    Configuration menu
    Copy the full SHA
    c5223e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83a8227 View commit details
    Browse the repository at this point in the history
  3. Add B019 check to find cache decorators on class methods (#218)

    * Add B019 check to find cache decorators on class methods
    
    * B019: Change decorator resolution approach to retain lineno
    
    Starting in Python 3.8, the function node definition's `lineno` is changed to index its `def ...` line rather than the first line where its decorators start. This causes inconsistent line numbers across Python versions for the line reported by Flake8.
    
    We can use the decorator node location instead, which provides a consistent location, and makes sense because this hits on decorators.
    
    * Update README verbiage
    
    * Prefer `extend-select` and `extend-ignore` for configuring opinionated warnings (`B9`)
    * Add deprecation note for Bugbear's internal handling of whether or not to emit `B9` codes
    * Add an example for `extend-immutable-call` specification
    
    * B9: Make Bugbear aware of flake8's `extend-select`
    
    * The code for Bugbear's built-in filtering for opinionated warnings predates the addition of `extend-select` to flake8 (`v4.0`) so it's not part of the check for explicit specification of `B9` codes.
    * Switch from `Mock` to `argparse.Namespace` for specifying options to tests to match the incoming type from `flake8` and avoid mocking side-effects.
    
    * Style fixes from review
    
    Co-authored-by: Cooper Ry Lees <me@cooperlees.com>
    
    Co-authored-by: Cooper Ry Lees <me@cooperlees.com>
    sco1 and cooperlees authored Mar 20, 2022
    Configuration menu
    Copy the full SHA
    4a92ce5 View commit details
    Browse the repository at this point in the history
  4. B022: No arguments passed to contextlib.suppress (#231)

    * B022: No arguments passed to contextlib.suppress
      * Update README.rst
      * Disclaimer note on rule scope
    jpy-git authored Mar 20, 2022
    Configuration menu
    Copy the full SHA
    e389294 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0069532 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. Tweak B019 desc (#237)

    jpy-git authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    77dc992 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. Configuration menu
    Copy the full SHA
    a4dc2b7 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. Add Pre-Commit Badge

    cooperlees committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    0e30194 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea0bd48 View commit details
    Browse the repository at this point in the history
  3. B006 and B008: Cover additional test cases (#239)

    * B006 and B008: Cover additional test cases
    
    * Add change log entry
    * Account for inconsistent ast between python versions
    * Use ast.literal_eval to simplify infinity float detection
    jpy-git authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    f9e0f77 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c255c1b View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2022

  1. Configuration menu
    Copy the full SHA
    40a9381 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2022

  1. Configuration menu
    Copy the full SHA
    e24eb10 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2022

  1. Configuration menu
    Copy the full SHA
    d4afd14 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2022

  1. Ignore black formatting for b013 test case (#251)

    * Ignore black formatting for b013 test case
    
    * Ack, needed to updated expected test result lineno
    jpy-git authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    4338842 View commit details
    Browse the repository at this point in the history
  2. [pre-commit.ci] pre-commit autoupdate (#247)

    * [pre-commit.ci] pre-commit autoupdate
    
    updates:
    - [github.com/psf/black: 22.1.0 → 22.3.0](psf/black@22.1.0...22.3.0)
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * Update b013.py
    
    Re add brackets
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Cooper Lees <me@cooperlees.com>
    pre-commit-ci[bot] and cooperlees authored Mar 30, 2022
    Configuration menu
    Copy the full SHA
    f2bf7f8 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Configuration menu
    Copy the full SHA
    bab0965 View commit details
    Browse the repository at this point in the history
Loading