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/pep8-naming
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.14.1
Choose a base ref
...
head repository: PyCQA/pep8-naming
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.15.0
Choose a head ref
  • 10 commits
  • 7 files changed
  • 2 contributors

Commits on Mar 14, 2025

  1. Add support for type variable name convention check (#235)

    Add N808 for type variable name convention check
    itaihay authored Mar 14, 2025
    Configuration menu
    Copy the full SHA
    57494e2 View commit details
    Browse the repository at this point in the history
  2. Add support for Python 3.13 (#236)

    Also upgrade some GitHub actions to their latest versions.
    jparise authored Mar 14, 2025
    Configuration menu
    Copy the full SHA
    b1cdbf4 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2025

  1. Configuration menu
    Copy the full SHA
    87009a8 View commit details
    Browse the repository at this point in the history
  2. Drop support for Python 3.8 (#238)

    Python 3.8 reached the end of its supported life on 2024-10-07.
    
    https://devguide.python.org/versions/
    jparise authored Mar 25, 2025
    Configuration menu
    Copy the full SHA
    0308d09 View commit details
    Browse the repository at this point in the history
  3. Use __init_subclass__ for subclass registration (#237)

    Python 3.6 introduced __init_subclass__(cls), which provides a nicer
    subclass registration pattern than the previous metaclass-based
    approach.
    jparise authored Mar 25, 2025
    Configuration menu
    Copy the full SHA
    77da152 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2025

  1. Refactor ignored name handling (#240)

    We previously constructed a frozen set of names that should be ignored
    at setup-time and then passed that set as an argument to each visitor
    function. A helper function -- _ignored(name, set) -- was used to test
    whether a given name should be ignored, matched using fnmatchcase().
    
    This change introduces a `NameSet` type, which inherits from frozenset
    and implements `__contains__` using fnmatchcase(). This allows us to
    simply use the `in` operator in visitor functions.
    
    The previous code also (sometimes) treated the `ignores` argument as
    optional (defaulting to None). This value always exists so remove the
    optional notation.
    jparise authored Mar 26, 2025
    Configuration menu
    Copy the full SHA
    bc1a7e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2025

  1. Add a fast path for NameSets without wildcards (#241)

    When the set of ignored names doesn't use shell-style wildcards, we can
    use the faster `frozenset.__contains__` base implementation rather than
    the more expensive iteration-based fnmatch'ing approach. This is true
    for the default ignore list, and I expect its the more common case by
    far even for those who add their own ignored names.
    
    In a simple local benchmark, this results in a 2x speed improvement for
    that common (default) path, which I think justifies the small additional
    complexity.
    jparise authored Apr 3, 2025
    Configuration menu
    Copy the full SHA
    95db1bc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2025

  1. Type 'parents' as Sequence (#242)

    This allows it to be used with reversed(). We could also have used
    Reversible, but Sequence is the more natural base of deque.
    jparise authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    93dee19 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2025

  1. FunctionType typing improvements (#243)

    First, represent FunctionType as an enum.Enum. This is more about the
    data type's concept than any higher-level Enum features.
    
    Then use FunctionType so improve the typing of various dictionaries and
    function signatures.
    
    Lastly, use setattr() for our AST monkey patching. I tried a few other
    approaches here (using ast.(Async)FunctionDef subclasses, introducing a
    new protocol, etc.), but the monkey patching approach always came out
    the simplest and most obvious. Using setattr() avoids typing errors
    related to unknown direct attribute assignments.
    jparise authored Apr 10, 2025
    Configuration menu
    Copy the full SHA
    d4e33d0 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2025

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