diff --git a/.flake8 b/.flake8 index 4483e68..fab72cf 100644 --- a/.flake8 +++ b/.flake8 @@ -4,3 +4,8 @@ extend-select = B950 extend-ignore = E203,E501,E701 per-file-ignores = */__init__.py:F401 + +exclude = + __pycache__ + dist, + venv diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000..39b73a7 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile = black diff --git a/pyproject.toml b/pyproject.toml index 6163d4e..1833e97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,2 @@ -[tool.isort] -profile = "black" - [tool.black] target-version = ["py38", "py39", "py310", "py311"] diff --git a/setup.py b/setup.py index b66d7a2..8628987 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,15 @@ from distutils.core import setup -_version = { } - -with open("bfxapi/_version.py", encoding="utf-8") as f: - exec(f.read(), _version) +from bfxapi._version import __version__ setup( name="bitfinex-api-py", - version=_version["__version__"], + version=__version__, description="Official Bitfinex Python API", - long_description="A Python reference implementation of the Bitfinex API for both REST and websocket interaction", + long_description=( + "A Python reference implementation of the Bitfinex API " + "for both REST and websocket interaction." + ), long_description_content_type="text/markdown", url="https://github.com/bitfinexcom/bitfinex-api-py", author="Bitfinex", @@ -17,12 +17,9 @@ setup( license="Apache-2.0", classifiers=[ "Development Status :: 4 - Beta", - "Intended Audience :: Developers", "Topic :: Software Development :: Build Tools", - "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -51,5 +48,5 @@ setup( "requests~=2.28.1", "urllib3~=1.26.14", ], - python_requires=">=3.8" -) \ No newline at end of file + python_requires=">=3.8", +)