Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #2

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TOKEN=
TOKEN=
2 changes: 1 addition & 1 deletion .github/workflows/build_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Build bot
run: "python3 _orangcbot"
env:
PR_TESTING: 1
PR_TESTING: 1
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- name: Lint
run: "black --check ."
env:
PR_TESTING: 1
PR_TESTING: 1
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ ci:
autofix_prs: true
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.0
hooks:
- id: black
name: Run black in files

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--extend-skip", "examples"]
name: Run isort in files

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-ast
name: Check if python files are valid syntax for the ast parser
Expand All @@ -35,4 +35,4 @@ repos:
name: Check for only one newline character at EOL.
- id: trailing-whitespace
name: Check for trailing whitespace.
args: [--markdown-linebreak-ext=md]
args: [--markdown-linebreak-ext=md]
3 changes: 2 additions & 1 deletion _orangcbot/__main__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from os import environ

from dotenv import load_dotenv

load_dotenv()
import nextcord
from nextcord.ext import commands
from nextcord import Intents
from nextcord.ext import commands

bot = commands.Bot(
intents=Intents.all(),
Expand Down
2 changes: 1 addition & 1 deletion _orangcbot/extensions/forum.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# INCOMPLETED

from nextcord.ext import commands
import nextcord
from nextcord.ext import commands


class Forum(commands.Cog):
Expand Down
4 changes: 2 additions & 2 deletions _orangcbot/extensions/fun.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import nextcord
from nextcord.ext import commands
from psl_dns import PSL
import nextcord

_psl = PSL()
from typing import Optional
from random import choice
from typing import Optional

_bonk_ans = ["Ouch!", "It hurts!", "Ohh noooo", "Pleaseeeeeee don't hurt me..."]

Expand Down
3 changes: 1 addition & 2 deletions _orangcbot/extensions/tags.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from nextcord.ext import commands

import nextcord
from nextcord.ext import commands

nohelp = """
Hey you! This is not a help channel!\n
Expand Down
2 changes: 1 addition & 1 deletion _orangcbot/texts/nohelp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Hey you! This is not a help channel!
We have a help channel for a reason, <#1155589227728339074>.
Please use that as a help channel. We need you to open a thread, even if it is a tiny problem.
So... **Enjoy troll answers past this message and take them with a pinch of salt. The action of following any help in this channel past this message is at your own risk. You've been warned.**
Have fun!
Have fun!
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
psl-dns
nextcord
python-dotenv
onami
onami
Loading