Giter Club home page Giter Club logo

Comments (7)

paulypeter avatar paulypeter commented on July 18, 2024 1

@sibalzer

For settings.py:
Since everything is checked now (as of 9310053) all of the code after config generation is obsolete and only needs to be run when a config.ini is provided by the user (and not generated). We could move it to a separate function then.

Also, I'd suggest using one const NOTIFIERS used by config_generator.py, settings.py, alerts.py and wherever else it might be needed. This way, we could reduce lines of code in several places.

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024 1

I've written tests this time to be safe 😅 (tests for settings.py still missing). Still, i'll test everything manually before the release to be on the safe side.

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024 1

5/5 yay

from impfbot.

paulypeter avatar paulypeter commented on July 18, 2024
  • config_generator.py

could also use some improvements

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

Also, I'd suggest using one const NOTIFIERS used by config_generator.py, settings.py, alerts.py and wherever else it might be needed. This way, we could reduce lines of code in several places.

i've over engineered settings.py in make-code-more-pythonic for v3.0.0 making use of NOTIFIERS. alerts.py is in queue.

from impfbot.

paulypeter avatar paulypeter commented on July 18, 2024

Looks great!
That's a lot of changes though, we'll have to make sure everything works as expected.

from impfbot.

sibalzer avatar sibalzer commented on July 18, 2024

closed by #83

from impfbot.

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.