Private member access linting plugin for flake8.
Project description
Home-page: http://github.com/korijn/flake8-self
Author: Korijn van Golen
Author-email: korijn@gmail.com
License: Freely Distributable
Description: [![PyPI](https://badge.fury.io/py/flake8-self.svg)](https://badge.fury.io/py/flake8-self) [![Anaconda](https://travis-ci.org/korijn/flake8-self.svg?branch=master)](https://travis-ci.org/korijn/flake8-self/)
# flake8-self
Private member access linting plugin for flake8.
## Example
```
> pipenv run flake8 example.py
example.py:10:1: SF01 Private member access
example.py:11:1: SF01 Private member access
```
example.py:
```python
class Foo(object):
def __init__(self):
self.public_thing = "bar"
self._private_thing = "quux"
self.__really_private_thing = "quuz"
foo = Foo()
print(foo.public_thing)
print(foo._private_thing) # SF01 Private member access
print(foo.__really_private_thing) # SF01 Private member access
print(foo.__dict__)
```
Keywords: private access self linting flake8
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: Freely Distributable
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Description-Content-Type: text/markdown
Author: Korijn van Golen
Author-email: korijn@gmail.com
License: Freely Distributable
Description: [![PyPI](https://badge.fury.io/py/flake8-self.svg)](https://badge.fury.io/py/flake8-self) [![Anaconda](https://travis-ci.org/korijn/flake8-self.svg?branch=master)](https://travis-ci.org/korijn/flake8-self/)
# flake8-self
Private member access linting plugin for flake8.
## Example
```
> pipenv run flake8 example.py
example.py:10:1: SF01 Private member access
example.py:11:1: SF01 Private member access
```
example.py:
```python
class Foo(object):
def __init__(self):
self.public_thing = "bar"
self._private_thing = "quux"
self.__really_private_thing = "quuz"
foo = Foo()
print(foo.public_thing)
print(foo._private_thing) # SF01 Private member access
print(foo.__really_private_thing) # SF01 Private member access
print(foo.__dict__)
```
Keywords: private access self linting flake8
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: Freely Distributable
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Description-Content-Type: text/markdown
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for flake8_self-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9268faf434c7a132beec28574d9e9258f2040a886530aff31e5c8a2436904df2 |
|
MD5 | 6ecd1bc928692bdbdd8f84b47093152e |
|
BLAKE2b-256 | 82169e4e94ddcff5c430b14e31ea975c331445f1b43373bd1b39e9f8e4e046e5 |