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

Commit517f83a

Browse files
committed
lint: switch Black withruff-format
1 parentedb8d26 commit517f83a

File tree

6 files changed

+3
-27
lines changed

6 files changed

+3
-27
lines changed

‎.github/workflows/lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ jobs:
1616
-uses:pre-commit/action@v3.0.1
1717
with:
1818
extra_args:--all-files --hook-stage manual
19-
env:
20-
SKIP:black-format

‎.pre-commit-config.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
repos:
2-
-repo:https://github.com/psf/black-pre-commit-mirror
3-
rev:23.9.1
4-
hooks:
5-
-id:black
6-
alias:black-check
7-
name:black (check)
8-
args:[--check, --diff]
9-
exclude:^git/ext/
10-
stages:[manual]
11-
12-
-id:black
13-
alias:black-format
14-
name:black (format)
15-
exclude:^git/ext/
162

173
-repo:https://github.com/astral-sh/ruff-pre-commit
184
rev:v0.3.0
195
hooks:
20-
#- id: ruff-format # todo: eventually replace Black with Ruff for consistency
21-
# args: ["--preview"]
6+
-id:ruff-format
7+
exclude:^git/ext/
228
-id:ruff
239
args:["--fix"]
2410
exclude:^doc|^git/ext/

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all:
44
@awk -F:'/^[[:alpha:]].*:/ && !/^all:/ {print $$1}' Makefile
55

66
lint:
7-
SKIP=black-formatpre-commit run --all-files --hook-stage manual
7+
SKIP=pre-commit run --all-files --hook-stage manual
88

99
clean:
1010
rm -rf build/ dist/ .eggs/ .tox/

‎pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ source = ["git"]
4242
include = ["*/git/*"]
4343
omit = ["*/git/ext/*"]
4444

45-
[tool.black]
46-
line-length =120
47-
target-version = ["py37"]
48-
extend-exclude ="git/ext/gitdb"
49-
5045
[tool.ruff]
5146
target-version ="py37"
5247
line-length =120

‎test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
black
21
coverage[toml]
32
ddt >= 1.1.1, != 1.4.3
43
mock ; python_version < "3.8"

‎tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ commands = pytest --color=yes {posargs}
1212
[testenv:lint]
1313
description = Lint via pre-commit
1414
base_python = py{39,310,311,312,38,37}
15-
set_env =
16-
SKIP = black-format
1715
commands = pre-commit run --all-files --hook-stage manual
1816

1917
[testenv:mypy]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp