neilgirdhar / ipromise Goto Github PK
View Code? Open in Web Editor NEWA Python base class that provides various decorators for specifying promises relating to inheritance.
License: MIT License
A Python base class that provides various decorators for specifying promises relating to inheritance.
License: MIT License
Running flake8
fails.
$ python -m flake8 -v --config setup.cfg ./ipromise/
flake8.checker MainProcess 1063 INFO Making checkers
flake8.checker MainProcess 1108 INFO Checking 10 files
flake8.main.application MainProcess 1208 INFO Finished running
flake8.main.application MainProcess 1208 INFO Reporting errors
flake8.main.application MainProcess 1209 INFO Found a total of 8 violations and reported 5
./ipromise/augments.py:3:1: F401 '.annotations.Decorator' imported but unused
./ipromise/implements.py:3:1: F401 '.annotations.Decorator' imported but unused
./ipromise/ipromise.py:108:46: W504 line break after binary operator
./ipromise/overrides.py:3:1: F401 '.annotations.Decorator' imported but unused
./ipromise/overrides.py:22:9: E306 expected 1 blank line before a nested definition, found 0
Using version
$ python -m flake8 --version
5.0.4 (mccabe: 0.7.0, pycodestyle: 2.9.1, pyflakes: 2.5.0) CPython 3.8.13 on Linux
Fix the errors reported by flake8
or remove flake8
entry from setup.cfg
.
mypy
fails.
$ python -m mypy --config-file ./setup.cfg ./ipromise/
ipromise/overrides.py:22: error: Function is missing a return type annotation
ipromise/overrides.py:22: note: Use "-> None" if function does not return a value
ipromise/test/test_overrides.py:27: error: Function is missing a return type annotation
ipromise/test/test_overrides.py:27: note: Use "-> None" if function does not return a value
ipromise/test/test_overrides.py:147: error: Cannot instantiate abstract class "AbstractBaseClassHasAbstractMethod" with abstract attribute "f"
ipromise/test/test_overrides.py:156: error: Function is missing a return type annotation
ipromise/test/test_overrides.py:156: note: Use "-> None" if function does not return a value
ipromise/test/test_overrides.py:166: error: Function is missing a return type annotation
ipromise/test/test_overrides.py:166: note: Use "-> None" if function does not return a value
ipromise/test/test_overrides.py:175: error: Function is missing a return type annotation
ipromise/test/test_overrides.py:175: note: Use "-> None" if function does not return a value
ipromise/test/test_implements.py:22: error: Function is missing a return type annotation
ipromise/test/test_implements.py:22: note: Use "-> None" if function does not return a value
Found 7 errors in 3 files (checked 12 source files)
Using version
$ python -m mypy --version
mypy 0.971 (compiled: yes)
Fix mypy
errors or remove mypy
entry from setup.cfg
.
PEP 591 provides it without any runtime component.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.