dblume commited on 2025-07-27 11:09:24
Showing 2 changed files, with 3 additions and 6 deletions.
Screwing around with neovim, lsp, and basedpyright. The warnings in the signcolumn were annoying, so cleaned up a couple of things. See: https://github.com/DetachHead/basedpyright
| ... | ... |
@@ -3,12 +3,10 @@ |
| 3 | 3 |
|
| 4 | 4 |
import os |
| 5 | 5 |
import sys |
| 6 |
-import time |
|
| 7 |
-import functools |
|
| 8 | 6 |
from argparse import ArgumentParser |
| 9 | 7 |
import counter.counter |
| 10 | 8 |
import sitesize.sitesize |
| 11 |
-from typing import Optional, Callable |
|
| 9 |
+from typing import Callable |
|
| 12 | 10 |
from decorators import timeit, profile |
| 13 | 11 |
from pathlib import Path |
| 14 | 12 |
try: |
| ... | ... |
@@ -62,7 +60,7 @@ class Coffee: |
| 62 | 60 |
|
| 63 | 61 |
|
| 64 | 62 |
@timeit.timeit |
| 65 |
-@profile.profile # may invoke with parameters, too |
|
| 63 |
+@profile.profile() # may invoke with parameters, too |
|
| 66 | 64 |
def main(debug: bool) -> None: |
| 67 | 65 |
script_dir = os.path.abspath(os.path.dirname(sys.argv[0])) |
| 68 | 66 |
print(f'{sys.argv[0]} is in {script_dir}.')
|
| ... | ... |
@@ -79,7 +77,7 @@ def main(debug: bool) -> None: |
| 79 | 77 |
if marshmallow_imported: |
| 80 | 78 |
print(bored.bored.get_activity()) |
| 81 | 79 |
|
| 82 |
- if (Path.home() / 'bin').exists(): |
|
| 80 |
+ if debug and (Path.home() / 'bin').exists(): |
|
| 83 | 81 |
print('Your home directory has a bin/ directory.')
|
| 84 | 82 |
|
| 85 | 83 |
cuppa = Coffee(5.00) |
| 86 | 84 |