purarue
a7f05c2cad
doc: spelling fixes
2024-11-26 21:51:40 +00:00
karlicoss
d3f9a8e8b6
core: migrate code to benefit from 3.9 stuff ( #401 )
...
for now keeping ruff on 3.8 target version, need to sort out modules as well
2024-10-19 20:55:09 +01:00
Dima Gerasimov
72cc8ff3ac
ruff: enable B warnings (mainly suppressed exceptions and unused variables)
2024-08-28 04:06:32 +01:00
Dima Gerasimov
7bfce72b7c
core: cleanup/sort imports according to ruff check --select I
2024-08-16 11:38:13 +01:00
Dima Gerasimov
7f8a502310
core.common: move assert_subpackage to my.core.internal
2024-08-16 10:22:29 +01:00
karlicoss
657ce08ac8
fix mypy issues after mypy/libraries updates
2023-11-10 22:59:09 +00:00
Dima Gerasimov
5fe21240b4
core: move mcachew into my.core.cachew; use better typing annotations (copied from cachew)
2023-06-08 01:29:49 +01:00
Dima Gerasimov
c34656e8fb
general: update mypy config, seems that logs of type: ignore aren't necessary anymore
2023-05-16 01:18:30 +01:00
Dima Gerasimov
016f28250b
general: initial flake8 checks (for now manual)
...
fix fairly uncontroversial stuff in my.core like
- line spacing, which isn't too annoying (e.g. unlike many inline whitespace checks that break vertical formatting)
- unused imports/variables
- too broad except
2022-06-05 22:28:38 +01:00
Dima Gerasimov
ca4d58e4e7
core: add helper to 'freeze' dataclasses, in order to derive a schema from the properties
2021-02-25 19:56:35 +00:00
Dima Gerasimov
9afe1811a5
core/cachew: special handling for None in order to preserve cache_dir() path
...
+ add 'suffix' argument for more straighforward logic
2021-02-21 19:51:58 +00:00
Dima Gerasimov
da3c1c9b74
core/cachew: rely on ~/.cache for default cache path
...
- rely on appdirs for default cache path instead of hardcoded /var/tmp/cachew
technically backwards incompatible, but no action needed
you might want to clean /var/tmp/cachew after updating
- use default cache path (e.g. ~/.cache) by default
see https://github.com/ActiveState/appdirs#some-example-output for more info
*warning*: things will be cached by default now (used to be uncached before)
- treat cache_dir = None in the config
*warning*: kind of backwards incompatible.. but again nothing disasterous
2021-02-21 19:51:58 +00:00
Dima Gerasimov
ced93e6942
reflect cachew changes of exception handling and temporary suppression
2020-10-08 21:22:02 +02:00
Dima Gerasimov
6242307d7a
my.bluemaestro: run against testdata, add on CI
2020-10-04 01:40:52 +02:00
Dima Gerasimov
70c801f692
core: add 'core' config section, add disabled_modules/enabled_modules configs, use them for hpi modules and hpi doctor
2020-09-30 21:54:09 +02:00
Dima Gerasimov
e34c04ebc8
core.cachew: make disabled_cachew defensive
2020-09-18 23:50:40 +01:00
Dima Gerasimov
c54d85037c
core: add base cachew directory
2020-07-31 12:22:13 +01:00
Dima Gerasimov
51ae8601b4
Update docstrings and add links
2020-04-26 16:50:06 +01:00
Dima Gerasimov
21e82f0cd6
add disable_cachew helper
2020-04-24 15:19:31 +01:00