Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-self, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size flake8_self-0.2.2-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page