summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstaticdev <staticdev-support@protonmail.com>2022-12-30 14:32:57 +0100
committerstaticdev <staticdev-support@protonmail.com>2022-12-30 14:32:57 +0100
commit5c0b99cdc9233518f201cf25d1c402002aa3d297 (patch)
treede5818c0670e297efb76378bb3a4a235af0f4380 /scripts
parent63eeb58f18a72cdf26e9de4c55a399bd807929e2 (diff)
downloadisort-5c0b99cdc9233518f201cf25d1c402002aa3d297.tar.gz
Remove unnecessary _future module
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_config_option_docs.py6
-rwxr-xr-xscripts/docker.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build_config_option_docs.py b/scripts/build_config_option_docs.py
index a3a491e1..4040ca45 100755
--- a/scripts/build_config_option_docs.py
+++ b/scripts/build_config_option_docs.py
@@ -1,9 +1,9 @@
#! /bin/env python
+import dataclasses
import os
from textwrap import dedent
from typing import Any, Dict, Generator, Iterable, Optional, Type
-from isort._future import dataclass
from isort.main import _build_arg_parser
from isort.settings import _DEFAULT_SETTINGS as config
@@ -34,7 +34,7 @@ profiles](https://pycqa.github.io/isort/docs/configuration/profiles.html).
parser = _build_arg_parser()
-@dataclass
+@dataclasses.dataclass
class Example:
section_complete: str = ""
cfg: str = ""
@@ -309,7 +309,7 @@ py_version=39
}
-@dataclass
+@dataclasses.dataclass
class ConfigOption:
name: str
type: Type = str
diff --git a/scripts/docker.sh b/scripts/docker.sh
index 2ddaa52b..1ca23e0e 100755
--- a/scripts/docker.sh
+++ b/scripts/docker.sh
@@ -3,7 +3,7 @@ set -ux
result=0
-for ver in {3.7,3.8,3.9}; do
+for ver in {3.8,3.9,3.10}; do
# latest tag will override after each build, leaving only the newest python version tagged
docker build ./ --build-arg VERSION=$ver -t "isort:$ver" -t "isort:latest" && docker run "isort:$ver"
result=$(( $? + $result ))