File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 26
26
- id : black
27
27
28
28
- repo : https://github.com/pre-commit/mirrors-mypy
29
- rev : v1.3 .0
29
+ rev : v1.4 .0
30
30
hooks :
31
31
- id : mypy
32
32
Original file line number Diff line number Diff line change 17
17
"""Generic type for cache values"""
18
18
19
19
# logging configuration for tests
20
- logging .config .fileConfig (fname = "tests/logging.conf" , disable_existing_loggers = False )
20
+ logging_config : str = "tests/logging.conf" # executing from project root
21
+ if not os .path .exists (logging_config ):
22
+ logging_config = "logging.conf" # executing from tests directory (most likely IntelliJ)
23
+
24
+ logging .config .fileConfig (fname = logging_config , disable_existing_loggers = False )
21
25
COH_TEST_LOG = logging .getLogger ("coherence-test" )
22
26
23
27
You can’t perform that action at this time.
0 commit comments