diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index a784fad1141..c41bc684f22 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -19,10 +19,10 @@ jobs: with: ref: ${{ inputs.branch }} - - name: Set up Python 3.9 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.12 - name: Install dependencies run: | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 12e1c15fe1f..52074e70428 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -27,10 +27,10 @@ jobs: with: ref: ${{ inputs.branch }} - - name: Set up Python 3.9 + - name: Set up Python 3.12 uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.12 - name: Install dependencies run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 461076b6442..038eae4a3a6 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,8 +12,8 @@ repos: args: - --include-version-classifiers - - repo: https://github.com/myint/autoflake - rev: v1.4 + - repo: https://github.com/PyCQA/autoflake + rev: v2.3.1 hooks: - id: autoflake args: @@ -23,6 +23,7 @@ repos: - --ignore-init-module-imports - --remove-duplicate-keys - --remove-unused-variables + language_version: '3.12' - repo: https://github.com/PyCQA/isort rev: "5.12.0" @@ -33,23 +34,19 @@ repos: rev: 22.3.0 hooks: - id: black - language-version: 3.9 - - - repo: https://github.com/dfm/black_nbconvert - rev: v0.4.0 - hooks: - - id: black_nbconvert + language_version: '3.12' + - id: black-jupyter + language_version: '3.12' - repo: https://github.com/PyCQA/flake8 - rev: "4.0.1" + rev: "7.1.1" hooks: - id: flake8 additional_dependencies: - flake8-tidy-imports - flake8-quotes -# - flake8-docstrings -# - flake8-spellcheck -# - darglint + language_version: '3.12' + - repo: local hooks: - id: mypy diff --git a/src/firebolt/common/_types.py b/src/firebolt/common/_types.py index 67ed2b49c20..91cdbe7cc11 100644 --- a/src/firebolt/common/_types.py +++ b/src/firebolt/common/_types.py @@ -22,6 +22,7 @@ def align_ms(match: re.Match) -> str: return re.sub(unsupported_milliseconds_re, align_ms, datetime_string) + #just testing sonar def _fix_timezone(datetime_string: str) -> str: # timezone, provided as +/-dd is not supported by datetime. # We need to append :00 to it