<!---
The MIT License (MIT)
Copyright (c) 2023 blablatdinov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
--->
# flake8-final
[![Build Status](https://github.com/blablatdinov/flake8-final/workflows/test/badge.svg?branch=master&event=push)](https://github.com/blablatdinov/flake8-final/actions?query=workflow%3Atest)
[![codecov](https://codecov.io/gh/blablatdinov/flake8-final/branch/master/graph/badge.svg)](https://codecov.io/gh/blablatdinov/flake8-final)
[![Python Version](https://img.shields.io/pypi/pyversions/flake8-final.svg)](https://pypi.org/project/flake8-final/)
[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)
flake8 plugin for check and inheritance of implementations
Inheritance is bad and that composition over inheritance is a good idea
[yegor256 blog post](https://www.yegor256.com/2016/09/13/inheritance-is-procedural.html)
## Features
- Fully typed with annotations and checked with mypy, [PEP561 compatible](https://www.python.org/dev/peps/pep-0561/)
## Installation
```bash
pip install flake8-final
```
## Example
Wrong:
```python
class Animal(object):
def move(self, to_x: int, to_y: int):
# Some logic for change coordinates
def sound(self):
print('Abstract animal sound')
class Dog(Animal):
def sound(self):
print('bark')
class Cat(Human):
def sound(self):
print('meow')
```
## License
[MIT](https://github.com/blablatdinov/flake8-final/blob/master/LICENSE)
## Credits
This project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [9899cb192f754a566da703614227e6d63227b933](https://github.com/wemake-services/wemake-python-package/tree/9899cb192f754a566da703614227e6d63227b933). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/9899cb192f754a566da703614227e6d63227b933...master) since then.
Raw data
{
"_id": null,
"home_page": "https://github.com/blablatdinov/flake8-final",
"name": "flake8-final",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Almaz Ilaletdinov",
"author_email": "a.ilaletdinov@yandex.ru",
"download_url": "https://files.pythonhosted.org/packages/a5/e4/487558ab03ca54c5f8b277d959fd07ece944fa44384cfd0908e5a1a328d6/flake8_final-0.0.3.tar.gz",
"platform": null,
"description": "<!---\nThe MIT License (MIT)\n\nCopyright (c) 2023 blablatdinov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n--->\n# flake8-final\n\n[![Build Status](https://github.com/blablatdinov/flake8-final/workflows/test/badge.svg?branch=master&event=push)](https://github.com/blablatdinov/flake8-final/actions?query=workflow%3Atest)\n[![codecov](https://codecov.io/gh/blablatdinov/flake8-final/branch/master/graph/badge.svg)](https://codecov.io/gh/blablatdinov/flake8-final)\n[![Python Version](https://img.shields.io/pypi/pyversions/flake8-final.svg)](https://pypi.org/project/flake8-final/)\n[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)\n\nflake8 plugin for check and inheritance of implementations\n\nInheritance is bad and that composition over inheritance is a good idea\n\n[yegor256 blog post](https://www.yegor256.com/2016/09/13/inheritance-is-procedural.html)\n\n## Features\n\n- Fully typed with annotations and checked with mypy, [PEP561 compatible](https://www.python.org/dev/peps/pep-0561/)\n\n\n## Installation\n\n```bash\npip install flake8-final\n```\n\n\n## Example\n\nWrong:\n\n```python\nclass Animal(object):\n \n def move(self, to_x: int, to_y: int):\n # Some logic for change coordinates\n\n def sound(self):\n print('Abstract animal sound')\n\n\nclass Dog(Animal):\n\n def sound(self):\n print('bark')\n\n\nclass Cat(Human):\n\n def sound(self):\n print('meow')\n```\n\n## License\n\n[MIT](https://github.com/blablatdinov/flake8-final/blob/master/LICENSE)\n\n\n## Credits\n\nThis project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [9899cb192f754a566da703614227e6d63227b933](https://github.com/wemake-services/wemake-python-package/tree/9899cb192f754a566da703614227e6d63227b933). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/9899cb192f754a566da703614227e6d63227b933...master) since then.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "flake8 plugin for check and inheritance of implementations",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/blablatdinov/flake8-final",
"Repository": "https://github.com/blablatdinov/flake8-final"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a77b1d426852147f4734fede23f2560da7b1715cb52c9df4e4340cdca07e890a",
"md5": "b5915ee56582a948ad38f53a5ae79ffe",
"sha256": "48d375a071c5d0193b5d698100d5751896337e9596ec541886c2895be7f19027"
},
"downloads": -1,
"filename": "flake8_final-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5915ee56582a948ad38f53a5ae79ffe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 6595,
"upload_time": "2024-07-22T13:18:49",
"upload_time_iso_8601": "2024-07-22T13:18:49.186288Z",
"url": "https://files.pythonhosted.org/packages/a7/7b/1d426852147f4734fede23f2560da7b1715cb52c9df4e4340cdca07e890a/flake8_final-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a5e4487558ab03ca54c5f8b277d959fd07ece944fa44384cfd0908e5a1a328d6",
"md5": "4ddb9dcf77c8adba1b72b642d1a2509d",
"sha256": "652c95616199aa4f1bf4ccb60c2cd944797e12dc21b0343f12534e24465b3c43"
},
"downloads": -1,
"filename": "flake8_final-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "4ddb9dcf77c8adba1b72b642d1a2509d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3292,
"upload_time": "2024-07-22T13:18:50",
"upload_time_iso_8601": "2024-07-22T13:18:50.064435Z",
"url": "https://files.pythonhosted.org/packages/a5/e4/487558ab03ca54c5f8b277d959fd07ece944fa44384cfd0908e5a1a328d6/flake8_final-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-22 13:18:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "blablatdinov",
"github_project": "flake8-final",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "flake8-final"
}