Skip to content

Commit a47c8a7

Browse files
authored
chore(linter): ignore ruff E721 and F541 (#308)
1 parent 2950600 commit a47c8a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ jobs:
8282
poetry --version
8383
- name: Install dependencies and library
8484
run: poetry install
85+
# We ignore the following rules for now:
86+
# E721 (https://docs.astral.sh/ruff/rules/type-comparison)
87+
# F541 (https://docs.astral.sh/ruff/rules/f-string-missing-placeholders)
8588
- name: Check linting
86-
run: poetry run ruff check .
89+
run: poetry run ruff check . --ignore E721 --ignore F541
8790

8891
tests:
8992
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ lint:
4444
for lib in $(LIBRARIES); do \
4545
cd ${WORKDIR}/$$lib && \
4646
poetry run ruff --version && \
47-
poetry run ruff check ./; \
47+
poetry run ruff check . --ignore E721 --ignore F541; \
4848
done
4949

5050
test:

0 commit comments

Comments
 (0)