-
Notifications
You must be signed in to change notification settings - Fork 240
Comparing changes
Open a pull request
base repository: PyCQA/pep8-naming
base: 0.14.1
head repository: PyCQA/pep8-naming
compare: 0.15.0
- 10 commits
- 7 files changed
- 2 contributors
Commits on Mar 14, 2025
-
Add support for type variable name convention check (#235)
Add N808 for type variable name convention check
Configuration menu - View commit details
-
Copy full SHA for 57494e2 - Browse repository at this point
Copy the full SHA 57494e2View commit details -
Add support for Python 3.13 (#236)
Also upgrade some GitHub actions to their latest versions.
Configuration menu - View commit details
-
Copy full SHA for b1cdbf4 - Browse repository at this point
Copy the full SHA b1cdbf4View commit details
Commits on Mar 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 87009a8 - Browse repository at this point
Copy the full SHA 87009a8View commit details -
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/
Configuration menu - View commit details
-
Copy full SHA for 0308d09 - Browse repository at this point
Copy the full SHA 0308d09View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 77da152 - Browse repository at this point
Copy the full SHA 77da152View commit details
Commits on Mar 26, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for bc1a7e4 - Browse repository at this point
Copy the full SHA bc1a7e4View commit details
Commits on Apr 3, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for 95db1bc - Browse repository at this point
Copy the full SHA 95db1bcView commit details
Commits on Apr 4, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for 93dee19 - Browse repository at this point
Copy the full SHA 93dee19View commit details
Commits on Apr 10, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for d4e33d0 - Browse repository at this point
Copy the full SHA d4e33d0View commit details
Commits on Apr 29, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a6be839 - Browse repository at this point
Copy the full SHA a6be839View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.14.1...0.15.0