Coder Social home page Coder Social logo

pystandups's People

Contributors

metov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

pystandups's Issues

importlib.metadata crashes older pythons

This is apparently a new module, added after python 3.7.

I only use it to read the version from pyproject toml, and I don't even use the version anywhere. I think I can just get rid of it.

Offers to "save" blank information

When you run standup get last with no standups.json file, pystandups prompts you about "saving" the latest data (empty strings in today's done and todo).

Expected behavior: If the data is missing, standup get commands should not even attempt to write anything.

Use more flexible data dir instead of hardcoding

Currently the location of the standups file is hardcoded in

DATA_DIR = Path("~").expanduser() / ".local/share/pystandups"
. This was actually supposed to be the $XDG_DATA_HOME directory (see https://wiki.archlinux.org/index.php/XDG_Base_Directory).

Ideally, the constant should be removed and instead

def standups_path():
should contain logic for deciding on the correct path based envars and other things.

The current hardcoded approach also doesn't really work for OS X, for instance, which technically have a different directory scheme.

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.