ci: sync configs to pymplate
- add python3.12 - add ruff
This commit is contained in:
parent
fabcbab751
commit
dc13f212bb
9 changed files with 117 additions and 74 deletions
|
@ -144,9 +144,9 @@ def test_active_modules() -> None:
|
|||
with reset() as cc:
|
||||
cc.enabled_modules = ['my.whatever']
|
||||
cc.disabled_modules = ['my.body.*']
|
||||
assert cc._is_module_active('my.whatever' ) is True
|
||||
assert cc._is_module_active('my.core' ) is None
|
||||
assert not cc._is_module_active('my.body.exercise') is True
|
||||
assert cc._is_module_active('my.whatever' ) is True
|
||||
assert cc._is_module_active('my.core' ) is None
|
||||
assert cc._is_module_active('my.body.exercise') is False
|
||||
|
||||
with reset() as cc:
|
||||
# if both are set, enable all
|
||||
|
|
|
@ -5,8 +5,8 @@ from my.core.source import import_source
|
|||
from .common import Message, _merge_messages
|
||||
|
||||
|
||||
src_export = import_source(module_name=f'my.fbmessenger.export')
|
||||
src_android = import_source(module_name=f'my.fbmessenger.android')
|
||||
src_export = import_source(module_name='my.fbmessenger.export')
|
||||
src_android = import_source(module_name='my.fbmessenger.android')
|
||||
|
||||
|
||||
@src_export
|
||||
|
|
|
@ -8,8 +8,8 @@ from .common import merge_tweets, Tweet
|
|||
|
||||
|
||||
# NOTE: you can comment out the sources you don't need
|
||||
src_twint = import_source(module_name=f'my.twitter.twint')
|
||||
src_archive = import_source(module_name=f'my.twitter.archive')
|
||||
src_twint = import_source(module_name='my.twitter.twint')
|
||||
src_archive = import_source(module_name='my.twitter.archive')
|
||||
|
||||
|
||||
@src_twint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue