mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
6
setup.py
6
setup.py
@@ -14,21 +14,19 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
PACKAGE_JSON = os.path.join(BASE_DIR, "superset-frontend", "package.json")
|
||||
|
||||
with open(PACKAGE_JSON, "r") as package_file:
|
||||
with open(PACKAGE_JSON) as package_file:
|
||||
version_string = json.load(package_file)["version"]
|
||||
|
||||
with io.open("README.md", "r", encoding="utf-8") as f:
|
||||
with open("README.md", encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user