Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d15063

Browse files
committed
Add "make lint" to lint without auto-formatting
As on CI and with tox (but not having to build and create and use atox environment).This may not be the best way to do it, since currently theproject's makefiles are otherwise used only for things directlyrelated to building and publishing. However, this seemed like areadily available way to run the moderately complex command thatproduces the same behavior as on CI or with tox, but outside a toxenvironment. It may be possible to improve on this in the future.
1 parent9b9de11 commit5d15063

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
.PHONY: all clean release force_release
1+
.PHONY: alllintclean release force_release
22

33
all:
44
@awk -F:'/^[[:alpha:]].*:/ && !/^all:/ {print $$1}' Makefile
55

6+
lint:
7+
SKIP=black-format pre-commit run --all-files --hook-stage manual
8+
69
clean:
710
rm -rf build/ dist/ .eggs/ .tox/
811

‎README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,8 @@ To lint, and apply automatic code formatting, run:
148148
pre-commit run --all-files
149149
```
150150

151-
Code formatting can also be done by itself by running:
152-
153-
```
154-
black .
155-
```
151+
- Linting without modifying code can be done with:`make lint`
152+
- Auto-formatting without other lint checks can be done with:`black .`
156153

157154
To typecheck, run:
158155

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp