Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Mar 30, 2023
1 parent b399b06 commit 247e850
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 190 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ template: |
$CHANGES
Changelog: [`$PREVIOUS_TAG...`](https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/compare/$PREVIOUS_TAG...)
Changelog: [`$PREVIOUS_TAG...`](https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/compare/$PREVIOUS_TAG...)
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ updates:
schedule:
interval: "daily"

target-branch: "master"
target-branch: "master"
2 changes: 1 addition & 1 deletion .github/workflows/poetry-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
python_version: "3.10"
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
build_format: "wheel"
ignore_dev_requirements: "yes"
ignore_dev_requirements: "yes"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ repos:
- id: check-yaml
- id: check-added-large-files
- id: mixed-line-ending
- id: check-json
- id: check-json
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ _🍗 疯狂星期四 🍗_
</div>

<p align="center">

<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/MinatoAquaCrews/nonebot_plugin_crazy_thursday?color=blue">
</a>

<a href="https://github.com/nonebot/nonebot2">
<img src="https://img.shields.io/badge/nonebot2-2.0.0rc1+-green">
</a>

<a href="https://github.com/MinatoAquaCrews/nonebot_plugin_crazy_thursday/releases/tag/v0.2.6.post2">
<img src="https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_crazy_thursday?color=orange">
</a>
Expand All @@ -31,7 +31,7 @@ _🍗 疯狂星期四 🍗_
<a href="https://results.pre-commit.ci/latest/github/MinatoAquaCrews/nonebot_plugin_crazy_thursday/master">
<img src="https://results.pre-commit.ci/badge/github/MinatoAquaCrews/nonebot_plugin_crazy_thursday/master.svg" alt="pre-commit.ci status">
</a>

</p>

## 版本
Expand All @@ -46,10 +46,10 @@ _🍗 疯狂星期四 🍗_

2. 文案的默认路径位于**插件同级目录**下;也可放置在别处,在 `.env` 下设置即可;`CRAZY_AUTO_UPDATE` 默认关闭,开启则插件将在启动时自动检查资源更新。例如:

```python
CRAZY_PATH="your-path-to-post.json"
CRAZY_AUTO_UPDATE=false
```
```python
CRAZY_PATH="your-path-to-post.json"
CRAZY_AUTO_UPDATE=false
```

## 功能

Expand All @@ -65,4 +65,4 @@ _🍗 疯狂星期四 🍗_

## 本插件改自

[HoshinoBot-fucking_crazy_thursday](https://github.com/Nicr0n/fucking_crazy_thursday)
[HoshinoBot-fucking_crazy_thursday](https://github.com/Nicr0n/fucking_crazy_thursday)
4 changes: 3 additions & 1 deletion nonebot_plugin_crazy_thursday/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import random
from typing import List

from nonebot import on_regex
from nonebot.matcher import Matcher
from nonebot.params import Depends, RegexMatched
from .config import *
from nonebot.plugin import PluginMetadata

from .config import *

__crazy_thursday_version__ = "v0.2.6.post2"
__crazy_thursday_usages__ = f"""
KFC疯狂星期四 {__crazy_thursday_version__}
Expand Down
8 changes: 5 additions & 3 deletions nonebot_plugin_crazy_thursday/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from pathlib import Path
from typing import Any, Dict, Union

import httpx
from nonebot import get_driver
from nonebot.log import logger
from pydantic import BaseModel, Extra
from pathlib import Path
from typing import Union, Dict, Any
import httpx

try:
import ujson as json
except ModuleNotFoundError:
Expand Down
344 changes: 172 additions & 172 deletions nonebot_plugin_crazy_thursday/post.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ build-backend = "poetry.core.masonry.api"
name = "tencentyun"
url = "https://mirrors.tencent.com/pypi/simple"
default = false
secondary = false
secondary = false

0 comments on commit 247e850

Please sign in to comment.