mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 14:24:21 +01:00
Split isort, black and flake8 configuration in .isort.cfg, .flake8 and pyproject.toml.
This commit is contained in:
5
.flake8
5
.flake8
@@ -4,3 +4,8 @@ extend-select = B950
|
|||||||
extend-ignore = E203,E501,E701
|
extend-ignore = E203,E501,E701
|
||||||
|
|
||||||
per-file-ignores = */__init__.py:F401
|
per-file-ignores = */__init__.py:F401
|
||||||
|
|
||||||
|
exclude =
|
||||||
|
__pycache__
|
||||||
|
dist,
|
||||||
|
venv
|
||||||
|
|||||||
2
.isort.cfg
Normal file
2
.isort.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[settings]
|
||||||
|
profile = black
|
||||||
@@ -1,5 +1,2 @@
|
|||||||
[tool.isort]
|
|
||||||
profile = "black"
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ["py38", "py39", "py310", "py311"]
|
target-version = ["py38", "py39", "py310", "py311"]
|
||||||
|
|||||||
19
setup.py
19
setup.py
@@ -1,15 +1,15 @@
|
|||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
_version = { }
|
from bfxapi._version import __version__
|
||||||
|
|
||||||
with open("bfxapi/_version.py", encoding="utf-8") as f:
|
|
||||||
exec(f.read(), _version)
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="bitfinex-api-py",
|
name="bitfinex-api-py",
|
||||||
version=_version["__version__"],
|
version=__version__,
|
||||||
description="Official Bitfinex Python API",
|
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",
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/bitfinexcom/bitfinex-api-py",
|
url="https://github.com/bitfinexcom/bitfinex-api-py",
|
||||||
author="Bitfinex",
|
author="Bitfinex",
|
||||||
@@ -17,12 +17,9 @@ setup(
|
|||||||
license="Apache-2.0",
|
license="Apache-2.0",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
|
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"Topic :: Software Development :: Build Tools",
|
"Topic :: Software Development :: Build Tools",
|
||||||
|
|
||||||
"License :: OSI Approved :: Apache Software License",
|
"License :: OSI Approved :: Apache Software License",
|
||||||
|
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
@@ -51,5 +48,5 @@ setup(
|
|||||||
"requests~=2.28.1",
|
"requests~=2.28.1",
|
||||||
"urllib3~=1.26.14",
|
"urllib3~=1.26.14",
|
||||||
],
|
],
|
||||||
python_requires=">=3.8"
|
python_requires=">=3.8",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user