Skip to content

Commit b04ce0a

Browse files
committed
👽 Update URL
1 parent 84c2fd2 commit b04ce0a

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,84 +21,85 @@ repos:
2121
- id: check-toml
2222
- id: check-json
2323
- repo: https://github.com/Lucas-C/pre-commit-hooks
24-
rev: v1.3.1
24+
rev: v1.5.1
2525
hooks:
2626
- id: remove-crlf
2727
- repo: https://github.com/codespell-project/codespell
28-
rev: v2.2.2
28+
rev: v2.2.4
2929
hooks:
3030
- id: codespell
3131
additional_dependencies:
3232
- tomli
3333
- repo: https://github.com/jorisroovers/gitlint
34-
rev: v0.18.0
34+
rev: v0.19.1
3535
hooks:
3636
- id: gitlint
3737
args:
3838
- --msg-filename
3939
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
40-
rev: 2.6.2
40+
rev: 2.7.1
4141
hooks:
4242
- id: editorconfig-checker
4343
- repo: https://github.com/jumanjihouse/pre-commit-hooks
4444
rev: 3.0.0
4545
hooks:
4646
- id: check-mailmap
4747
- id: shellcheck
48-
- id: shfmt
49-
exclude: .*\.zsh$|^\.z(profile|shrc)$
5048
- repo: https://github.com/adrienverge/yamllint
51-
rev: v1.28.0
49+
rev: v1.31.0
5250
hooks:
5351
- id: yamllint
5452
- repo: https://github.com/executablebooks/mdformat
5553
rev: 0.7.16
5654
hooks:
5755
- id: mdformat
58-
args:
59-
- --number
6056
additional_dependencies:
57+
- mdformat-pyproject
58+
- mdformat-gfm
6159
- mdformat-myst
6260
- mdformat-toc
6361
- mdformat-deflist
6462
- mdformat-beautysh
6563
- mdformat-black
6664
- mdformat-config
6765
- repo: https://github.com/DavidAnson/markdownlint-cli2
68-
rev: v0.6.0
66+
rev: v0.7.0
6967
hooks:
7068
- id: markdownlint-cli2
7169
additional_dependencies:
7270
71+
- repo: https://github.com/scop/pre-commit-shfmt
72+
rev: v3.6.0-2
73+
hooks:
74+
- id: shfmt
7375
- repo: https://github.com/psf/black
74-
rev: 22.12.0
76+
rev: 23.3.0
7577
hooks:
7678
- id: black
7779
- repo: https://github.com/PyCQA/isort
78-
rev: 5.11.4
80+
rev: 5.12.0
7981
hooks:
8082
- id: isort
8183
- repo: https://github.com/pycqa/pydocstyle
82-
rev: 6.1.1
84+
rev: 6.3.0
8385
hooks:
8486
- id: pydocstyle
8587
additional_dependencies:
86-
- toml
88+
- tomli
8789
- repo: https://github.com/kumaraditya303/mirrors-pyright
88-
rev: v1.1.286
90+
rev: v1.1.304
8991
hooks:
9092
- id: pyright
9193
- repo: https://github.com/PyCQA/bandit
92-
rev: 1.7.4
94+
rev: 1.7.5
9395
hooks:
9496
- id: bandit
9597
args:
9698
- -cpyproject.toml
9799
additional_dependencies:
98-
- toml
100+
- tomli
99101

100102
ci:
101103
skip:
102104
- shellcheck
103-
- shfmt
104105
- pyright

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
![github/repo-size](https://shields.io/github/repo-size/Freed-Wu/tmux-bitahub)
3030
![github/v](https://shields.io/github/v/release/Freed-Wu/tmux-bitahub)
3131

32-
Display [bitahub](https://www.bitahub.com/resources) GPU status in
32+
Display [bitahub](https://bitahub.ustc.edu.cn/resources) GPU status in
3333
[tmux](https://github.com/tmux/tmux) status line.
3434

3535
![Screenshot](https://user-images.githubusercontent.com/32936898/195975347-4024f8a9-3f13-4e1a-b84d-0e366d599c7f.png)

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[tool.mdformat]
2+
number = true
3+
14
[tool.black]
25
line-length = 79
36

scripts/bitahub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def main(resource: str = ""):
2020
except IndexError:
2121
resource = "gtx1080ti"
2222
with request.urlopen( # nosec: B310
23-
"https://www.bitahub.com/resources/" + resource
23+
"https://bitahub.ustc.edu.cn/resources/" + resource
2424
) as f:
2525
html = f.read()
2626
print(get_result(html))

0 commit comments

Comments
 (0)