https://github.com/meanmail-dev/flake8-super
Python 3 super() check for flake8
https://github.com/meanmail-dev/flake8-super
flake8 plugin pypi python super
Last synced: over 1 year ago
JSON representation
Python 3 super() check for flake8
- Host: GitHub
- URL: https://github.com/meanmail-dev/flake8-super
- Owner: meanmail-dev
- License: mit
- Created: 2020-08-09T11:03:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T07:21:24.000Z (about 5 years ago)
- Last Synced: 2025-02-22T03:34:05.499Z (over 1 year ago)
- Topics: flake8, plugin, pypi, python, super
- Language: Python
- Homepage: https://meanmail.dev
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# flake8-super
[](https://pepy.tech/project/flake8-super)




Python 3 super() check for flake8
# Installation
```bash
pip install flake8-super
```
# Configuration
No configuration required
# Example
```python3
# Error
class SomeClass:
def __init__(self):
super(SomeClass, self).__init__() # SPR100 Use `super()` instead of `super(__class__, self)`
# Good
class SomeClass:
def __init__(self):
super().__init__()
```
# Error codes
|code|description|
|---|---|
|SPR100|Use `super()` instead of `super(__class__, self)`|
# Links
https://github.com/meanmail/flake8-super
https://meanmail.dev/