Skip to content

Commit a5c66bd

Browse files
committed
test: testing sonar cloud if it works NoTicket
1 parent 16ffe3d commit a5c66bd

4 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/code-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
with:
2020
ref: ${{ inputs.branch }}
2121

22-
- name: Set up Python 3.9
22+
- name: Set up Python 3.12
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: 3.9
25+
python-version: 3.12
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
with:
2828
ref: ${{ inputs.branch }}
2929

30-
- name: Set up Python 3.9
30+
- name: Set up Python 3.12
3131
uses: actions/setup-python@v2
3232
with:
33-
python-version: 3.9
33+
python-version: 3.12
3434

3535
- name: Install dependencies
3636
run: |

.pre-commit-config.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repos:
1212
args:
1313
- --include-version-classifiers
1414

15-
- repo: https://github.com/myint/autoflake
16-
rev: v1.4
15+
- repo: https://github.com/PyCQA/autoflake
16+
rev: v2.3.1
1717
hooks:
1818
- id: autoflake
1919
args:
@@ -23,6 +23,7 @@ repos:
2323
- --ignore-init-module-imports
2424
- --remove-duplicate-keys
2525
- --remove-unused-variables
26+
language_version: '3.12'
2627

2728
- repo: https://github.com/PyCQA/isort
2829
rev: "5.12.0"
@@ -33,23 +34,26 @@ repos:
3334
rev: 22.3.0
3435
hooks:
3536
- id: black
36-
language-version: 3.9
37-
37+
language_version: '3.12'
38+
3839
- repo: https://github.com/dfm/black_nbconvert
39-
rev: v0.4.0
40+
rev: v0.7.0
4041
hooks:
4142
- id: black_nbconvert
43+
additional_dependencies:
44+
- tomli
45+
- toml
46+
language_version: '3.12'
4247

4348
- repo: https://github.com/PyCQA/flake8
44-
rev: "4.0.1"
49+
rev: "7.1.1"
4550
hooks:
4651
- id: flake8
4752
additional_dependencies:
4853
- flake8-tidy-imports
4954
- flake8-quotes
50-
# - flake8-docstrings
51-
# - flake8-spellcheck
52-
# - darglint
55+
language_version: '3.12'
56+
5357
- repo: local
5458
hooks:
5559
- id: mypy

src/firebolt/common/_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def align_ms(match: re.Match) -> str:
2222

2323
return re.sub(unsupported_milliseconds_re, align_ms, datetime_string)
2424

25+
#just testing sonar
2526
def _fix_timezone(datetime_string: str) -> str:
2627
# timezone, provided as +/-dd is not supported by datetime.
2728
# We need to append :00 to it

0 commit comments

Comments
 (0)