Skip to content

Commit d925f76

Browse files
author
LegrandNico
committed
pre-commit
1 parent 1b66a11 commit d925f76

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[settings]
2-
known_third_party = arviz,matplotlib,numba,numpy,pandas,pandas_flavor,pymc,pytensor,pytest,scipy,sphinx_bootstrap_theme,tqdm
2+
known_third_party = arviz,matplotlib,numba,numpy,pandas,pandas_flavor,pymc,pytensor,pytest,scipy,setuptools,sphinx_bootstrap_theme,tqdm
33
multi_line_output = 3
44
include_trailing_comma = True
55
force_grid_wrap = 0

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
# Copyright (C) 2019 Nicolas Legrand
2-
import os
32
import codecs
3+
import os
4+
45
from setuptools import setup
56

67
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
78
REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements.txt")
89

10+
911
def get_requirements():
1012
with codecs.open(REQUIREMENTS_FILE) as buff:
1113
return buff.read().splitlines()
1214

15+
1316
# Get the package's version number of the __init__.py file
1417
def read(rel_path):
1518
"""Read the file located at the provided relative path."""
1619
here = os.path.abspath(os.path.dirname(__file__))
1720
with codecs.open(os.path.join(here, rel_path), "r") as fp:
1821
return fp.read()
1922

23+
2024
def get_version(rel_path):
2125
"""Get the package's version number.
2226
We fetch the version number from the `__version__` variable located in the
@@ -50,7 +54,7 @@ def get_version(rel_path):
5054
maintainer=MAINTAINER,
5155
maintainer_email=MAINTAINER_EMAIL,
5256
description=DESCRIPTION,
53-
long_description=open("README.md", encoding='utf-8').read(),
57+
long_description=open("README.md", encoding="utf-8").read(),
5458
long_description_content_type="text/markdown",
5559
license="GPL-3.0",
5660
version=get_version("metadpy/__init__.py"),

0 commit comments

Comments
 (0)