Split isort, black and flake8 configuration in .isort.cfg, .flake8 and pyproject.toml.

This commit is contained in:
Davide Casale
2024-02-27 18:11:10 +01:00
parent 5543b0b1d2
commit e2257561d9
4 changed files with 15 additions and 14 deletions

View File

@@ -4,3 +4,8 @@ extend-select = B950
extend-ignore = E203,E501,E701
per-file-ignores = */__init__.py:F401
exclude =
__pycache__
dist,
venv

2
.isort.cfg Normal file
View File

@@ -0,0 +1,2 @@
[settings]
profile = black

View File

@@ -1,5 +1,2 @@
[tool.isort]
profile = "black"
[tool.black]
target-version = ["py38", "py39", "py310", "py311"]

View File

@@ -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"
python_requires=">=3.8",
)