Skip to content

Commit

Permalink
Merge branch 'develop' into edit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
gmelodie authored Feb 20, 2024
2 parents 14d4655 + 24a6936 commit f491ef3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
12 changes: 8 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@

# Commits
* Please put a meaningful commit message.
* No need for emojis. ❌
### OK:
* Create CSV file with statistics funcionality.
* No need for emojis in commit messages. ❌ (OK in Documentation)

**OK:**

* Create CSV file with statistics functionality.
* Fixes issue #123 - Refactor Tomato class
* Formatted with black
* Fixed README
* Updated README
* Update CONTRIBUTING.md
### Not OK:

**Not OK:**

* Push code.
* I'm pushing code..
* Gah! have some code.
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Install via snap (Linux):
$ sudo snap install pydoro
$ pydoro
* NOTE: Pop!_OS users will need to run pydoro without sound, using this command option: :code:`pydoro --no-sound`
* Snap package is maintained by James Tigert ( kz6fittycent_ )

Expand All @@ -56,7 +56,7 @@ If you have pipx:
.. code-block::
$ pipx install pydoro
You can also inject dependencies to pipx virtual environment using

.. code-block::
Expand Down Expand Up @@ -126,6 +126,6 @@ Why ? 🤔

Copyright ⚖
----------------
This software is Copyright (c) 2021 - 2023 Bhathiya Perera.
This software is Copyright (c) 2021 - 2024 Bhathiya Perera.

See the LICENSE file for more information.
5 changes: 2 additions & 3 deletions pydoro/pydoro_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,13 @@ def _create_default_ini(self, filename):
Creates default ini configuration file
Saves it in '~/.config/pydoro/pydoro.ini' or the location specified by PYDORO_CONFIG_FILE environment variable
"""

config_dir = os.path.expanduser("~/.config/pydoro")
os.makedirs(config_dir, exist_ok=True)
os.chdir(config_dir)

with open(filename, "w+") as configfile:
self._conf.write(configfile)

def _ini_load(self):
"""
Loads the .ini config file preferences
Expand Down
2 changes: 1 addition & 1 deletion pydoro/pydoro_core/tomato.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from timeit import default_timer

from pydoro.pydoro_core import sound
from pydoro.pydoro_core.util import in_app_path, open_file_in_default_editor
from pydoro.pydoro_core.util import open_file_in_default_editor
from pydoro.pydoro_core.config import Configuration

from prompt_toolkit.application.current import get_app
Expand Down
4 changes: 0 additions & 4 deletions pydoro/pydoro_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

__version__ = "0.2.3"

from email import message
from lib2to3.pytree import LeafPattern
# from msilib.schema import EventMapping
import sys
import os
import threading
import subprocess
from turtle import isvisible

from prompt_toolkit.application import Application
from prompt_toolkit.application.current import get_app
Expand Down

0 comments on commit f491ef3

Please sign in to comment.