Giter VIP home page Giter VIP logo

lgtm-db's Introduction

Hi there ๐Ÿ‘‹

lgtm-db's People

Contributors

pre-commit-ci[bot] avatar thatlittleboy avatar

Stargazers

 avatar  avatar

Watchers

 avatar

lgtm-db's Issues

[INF] Automating the release procedure using a task runner

Right now, release is still largely a manual process (need to commit a release commit, and tag, etc.).
There is a chance to automate it using some task runner.

Don't really want to use Make, can try some python-based alternatives like doit or just.

[ENH] Support CLI args

  • default with no args should print help message
  • selecting random gifs like lgtm-db random ?
  • selecting a random gif based on name / tag etc.
  • list (names of) all available gifs

[ENH] Improve on `get_width_height` script

From #11 , I added in a script to scrape the image height and width from the source URL, and write it back into the db.yaml file.

There are a few possible improvements:

  1. Use async / await instead of sequentially calling. [DONE]
  2. Incorporate the use of this script as a test (unconfirmed, since this might slow down tests ALOT) to make sure width/height is always provided, and is up-to-date with the image on the source URL.
  3. Currently script is writing to new_db.yaml; it should overwrite db.yaml?

[ENH] Support tags metadata

db.yaml should support tags so we can also select random gif based on tags.

Such as:

  • (Type)
    • nice / good work / thumbs up
    • approve
    • merge / ship-it
  • (Subject)
    • animal
    • human

etc.

[INF] Add checks for validity of `db.yaml`

Right now, there are no proper checks on the validity of the additions to db.yaml.

  • if there are duplicated names (id's should be unique)
  • if there are duplicated urls
  • if there is width/height information

etc.

I think we can write some local pre-commit hooks or just rely on CI (shell script checks). Either is fine.

[ENH] Add typing support

Take the leap into adding type hints into the code base.

Upgrade the minimum python version to 3.9 if necessary. Add mypy to precommit.

[ENH] Add tests for the CLI args

Not sure if this is a testable thing, but I want to think the argparsing functionality of the CLI app needs to be tested.
Can double check against popular tools like flake8, pre-commit or black to see how they test.

[ENH] Add tests

  • Initialize pytest framework
  • Add tests for Matcher (introduced in #37)
  • Add tests for GifLoader (introduced in #37)
  • Run tests on CI/CD

[BUG] fluffy is blocked by ublock origin

i.fluffy.cc seems to be blocked by uBlock origin, perhaps I should collate the gifs all on giphy.


image
(img being tested here is the multiple pikachu one)

image

Check work vn-consolidation merge request 13 to test.

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.