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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flake8_self-0.2.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page