flake8-self-0.2.2
توضیحات
Private member access linting plugin for flake8.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flake8-self-0.2.2 |
| نام | flake8-self |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/flake8-self/ |
| مجوز | - |
Home-page: http://github.com/korijn/flake8-self
Author: Korijn van Golen
Author-email: korijn@gmail.com
License: Freely Distributable
Description: [](https://badge.fury.io/py/flake8-self) [](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
نیازمندی
| مقدار | نام |
|---|---|
| - | flake8 |
نحوه نصب
نصب پکیج whl flake8-self-0.2.2:
pip install flake8-self-0.2.2.whl
نصب پکیج tar.gz flake8-self-0.2.2:
pip install flake8-self-0.2.2.tar.gz