Git Product home page Git Product logo

Comments (2)

1fish2 avatar 1fish2 commented on June 12, 2024 1

PR #43 adds runscripts to run the static checkers (so we don't have to remember how) and also fixes some checks.

from vivarium-core.

1fish2 avatar 1fish2 commented on June 12, 2024

Tips:

  • PEP 563 makes a small semantic change to Python annotations that will become mandatory in Python 3.10. Ideally we should make the annotations compatible with that now and keep them that way as we fill them out. We can use from __future__ import annotations to ensure they're good with it now, or it might suffice to run PyCharm inspections set to check for Python 3.10 compatibility.
    • I'll have to re-read it but IIRC it won't change any of our type hints. The point of the change is to defer processing of the annotations so that (1) they can more easily handle forward references to classes and (2) they avoid taking the time to process annotations when "just" loading code to run it. The change impacts cases like using annotations for RPC protocol definitions, database queries, etc.
  • It'd be nice to make PyCharm inspections run clean on the code, even if that means letting it add some comments to ignore some inspections in some locations.

from vivarium-core.

Related Issues (20)

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.