Giter VIP home page Giter VIP logo

ipromise's People

Contributors

jtmoon79 avatar neilgirdhar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ipromise's Issues

fix flake8 errors

Problem

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

Solution

Fix the errors reported by flake8 or remove flake8 entry from setup.cfg.

fix mypy errors

Problem

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)

Solution

Fix mypy errors or remove mypy entry from setup.cfg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.