use autoflake to remove unused imports
This commit is contained in:
parent
b7a683c11d
commit
9d7d80d3a5
9 changed files with 19 additions and 20 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import asyncio
|
||||
import logging
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime, timezone
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import logging
|
||||
import sqlite3
|
||||
from datetime import datetime, timezone
|
||||
from datetime import datetime
|
||||
from typing import *
|
||||
|
||||
from .models import Feed, Post
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import random
|
||||
import re
|
||||
|
||||
from ..functions import reply
|
||||
from ..models import Message
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import re
|
||||
from dataclasses import dataclass
|
||||
from html import escape
|
||||
from random import choice
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ import codecs
|
|||
import re
|
||||
from dataclasses import dataclass
|
||||
from html import escape
|
||||
from html.parser import HTMLParser
|
||||
from random import randint
|
||||
from time import time as now
|
||||
from typing import *
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import io
|
||||
import json
|
||||
import re
|
||||
from dataclasses import dataclass, fields
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import replace as clone
|
||||
from datetime import date
|
||||
from html import escape
|
||||
from html.parser import HTMLParser
|
||||
from pathlib import Path
|
||||
from typing import *
|
||||
from urllib.parse import urlparse
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import asyncio
|
||||
import logging
|
||||
import re
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from functools import lru_cache, partial
|
||||
from functools import lru_cache
|
||||
from html import escape
|
||||
from time import time as now
|
||||
from typing import *
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import re
|
||||
from dataclasses import dataclass, fields
|
||||
from dataclasses import dataclass
|
||||
from functools import lru_cache
|
||||
from html import escape
|
||||
from time import time as now
|
||||
from typing import *
|
||||
|
||||
|
|
|
|||
22
scripts/lint
22
scripts/lint
|
|
@ -1,11 +1,19 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if [ "$1" = '--fix' ]; then
|
||||
set -x
|
||||
black .
|
||||
isort --profile black .
|
||||
else
|
||||
set -x
|
||||
black --check .
|
||||
isort --profile black --check .
|
||||
(
|
||||
set -x
|
||||
black .
|
||||
isort --profile black .
|
||||
autoflake --in-place --recursive .
|
||||
)
|
||||
exit
|
||||
fi
|
||||
|
||||
error=0
|
||||
|
||||
(set -x; black --check .) || error=$?
|
||||
(set -x; isort --profile black --check .) || error=$?
|
||||
(set -x; autoflake --check --recursive .) || error=$?
|
||||
|
||||
exit "$error"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue