Skip to content

Commit 94118a1

Browse files
committed
Add make lint-fix-unsafe and make fix
1 parent 796c427 commit 94118a1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ lint:
99
lint-fix:
1010
ruff check --fix
1111
npx @biomejs/biome check --fix
12+
13+
lint-fix-unsafe:
14+
ruff check --fix --unsafe-fixes
15+
npx @biomejs/biome check --fix --unsafe
16+
17+
fix: format lint-fix-unsafe

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ admin interface, go back to the main interface. You're now logged in.
7878

7979
Code formatting and linting is done using [`ruff`] and [`biome`]. You can run
8080
formatting using `make format`. Linting can be done using `make lint` and
81-
automatic fixing of linting errors can be done using `make lint-fix`. CI checks
82-
that you adhere to these coding standards.
81+
automatic fixing of linting errors can be done using `make lint-fix` or `make
82+
lint-fix-unsafe` (unsafe fixes can slightly change program behaviour, but often
83+
the fixed behaviour is the one you intended). You can also run both `make
84+
format` and `make lint-fix-unsafe` together by using `make fix`. CI
85+
automatically checks that you adhere to these coding standards.
8386

8487
You can install the git pre-commit hook to help you adhere to the codestyle:
8588

0 commit comments

Comments
 (0)