diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5556421..e1e26f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,21 +5,21 @@ repos: - id: reorder-python-imports language_version: python3 - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: '6.1.0' + rev: '7.0.0' hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier additional_dependencies: - prettier@2.8.4 - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.43.0 + rev: v9.0.0-alpha.2 hooks: - id: eslint files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx @@ -32,7 +32,7 @@ repos: - eslint-plugin-prettier@4.2.1 - typescript@5.0.4 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: check-json diff --git a/jupyter_power_usage/utils.py b/jupyter_power_usage/utils.py index 090c55d..7a433ef 100644 --- a/jupyter_power_usage/utils.py +++ b/jupyter_power_usage/utils.py @@ -166,9 +166,9 @@ def filter_rapl_domains(): filtered_domains_power_limits[unq_dom_name] = read_power_limit_uw_counter( dom_dict['energy_uj'] ) - filtered_domains_overflow_counters[ - unq_dom_name - ] = read_max_energy_uj_counter(dom_dict['energy_uj']) + filtered_domains_overflow_counters[unq_dom_name] = ( + read_max_energy_uj_counter(dom_dict['energy_uj']) + ) return ( filtered_domains, filtered_domains_power_limits,