Skip to content

Commit

Permalink
Chore: Format pyproject.toml with most recent `pyproject-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Sep 17, 2024
1 parent b7f8b21 commit fbc75b3
Showing 1 changed file with 71 additions and 76 deletions.
147 changes: 71 additions & 76 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ requires = [
"versioningit",
]

[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.0"

[project]
name = "influxio"
description = "Import and export data into/from InfluxDB"
Expand Down Expand Up @@ -88,21 +84,20 @@ dependencies = [
"colorama<1",
"cratedb-toolkit",
"dask[dataframe]>=2020",
'importlib-metadata; python_version <= "3.9"',
"fsspec[s3,http]",
"importlib-metadata; python_version<='3.9'",
"influx-line==1.0.0",
"influxdb-client[ciso]<2",
"line-protocol-parser<2",
"pandas<2.3",
"psycopg2-binary<3",
"pueblo>=0.0.7",
"sqlalchemy-cratedb>=0.37,<1",
"SQLAlchemy-Utils<0.42",
"sqlalchemy-utils<0.42",
"universal-pathlib<0.3",
"yarl<2",
]
[project.optional-dependencies]
develop = [
optional-dependencies.develop = [
"black<25",
"mypy<1.12",
"poethepoet<0.29",
Expand All @@ -111,7 +106,7 @@ develop = [
"sphinx-autobuild==2021.3.14", # Newer versions stopped "watching" appropriately?
"validate-pyproject<0.20",
]
docs = [
optional-dependencies.docs = [
"furo",
"myst-parser[linkify]>=0.18,<5",
"sphinx<9",
Expand All @@ -120,88 +115,59 @@ docs = [
"sphinxcontrib-mermaid<1",
"sphinxext-opengraph<1",
]
release = [
optional-dependencies.release = [
"build<2",
"twine<6",
]
test = [
optional-dependencies.test = [
"pytest<9",
"pytest-cov<6",
]
[project.urls]
changelog = "https://github.com/daq-tools/influxio/blob/main/CHANGES.rst"
documentation = "https://github.com/daq-tools/influxio"
homepage = "https://github.com/daq-tools/influxio"
repository = "https://github.com/daq-tools/influxio"
[project.scripts]
influxio = "influxio.cli:cli"

[tool.black]
line-length = 120

[tool.coverage.run]
branch = false
omit = [
"tests/*",
]
source = ["influxio"]
urls.changelog = "https://github.com/daq-tools/influxio/blob/main/CHANGES.rst"
urls.documentation = "https://github.com/daq-tools/influxio"
urls.homepage = "https://github.com/daq-tools/influxio"
urls.repository = "https://github.com/daq-tools/influxio"
scripts.influxio = "influxio.cli:cli"

[tool.coverage.report]
fail_under = 0
show_missing = true
[tool.setuptools.packages.find]
namespaces = false

[tool.mypy]
packages = ["influxio"]
install_types = true
ignore_missing_imports = true
implicit_optional = true
non_interactive = true
# ===================
# Tasks configuration
# ===================

[tool.pytest.ini_options]
addopts = "-rA --verbosity=3 --cov --cov-report=term-missing --cov-report=xml"
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
log_format = "%(asctime)-15s [%(name)-24s] %(levelname)-8s: %(message)s"
testpaths = [
"influxio",
"tests",
]
xfail_strict = true
markers = [
"examples",
"slow",
]
[tool.black]
line-length = 120

[tool.ruff]
line-length = 120

lint.select = [
# Bandit
"S",
# Bugbear
"B",
# Builtins
"A",
# Bugbear
"B",
# comprehensions
"C4",
# Pycodestyle
"E",
# eradicate
"ERA",
# flake8-2020
"YTT",
# Pyflakes
"F",
# isort
"I",
# pandas-vet
"PD",
# return
"RET",
# Bandit
"S",
# print
"T20",
# Pycodestyle
"E",
"W",
# Pyflakes
"F",
# return
"RET",
# flake8-2020
"YTT",
]

lint.extend-ignore = [
Expand All @@ -215,18 +181,47 @@ lint.extend-ignore = [
"RET505",
]

[tool.ruff.lint.per-file-ignores]
"doc/conf.py" = ["A001", "ERA001"]
"tests/*" = ["S101"] # Use of `assert` detected
"influxio/util/report.py" = ["T201"]
lint.per-file-ignores."doc/conf.py" = [ "A001", "ERA001" ]
lint.per-file-ignores."influxio/util/report.py" = [ "T201" ]
lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected

[tool.setuptools.packages.find]
namespaces = false
[tool.pytest.ini_options]
addopts = "-rA --verbosity=3 --cov --cov-report=term-missing --cov-report=xml"
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
log_format = "%(asctime)-15s [%(name)-24s] %(levelname)-8s: %(message)s"
testpaths = [
"influxio",
"tests",
]
xfail_strict = true
markers = [
"examples",
"slow",
]

[tool.coverage.run]
branch = false
omit = [
"tests/*",
]
source = [ "influxio" ]

# ===================
# Tasks configuration
# ===================
[tool.coverage.report]
fail_under = 0
show_missing = true

[tool.mypy]
packages = [ "influxio" ]
install_types = true
ignore_missing_imports = true
implicit_optional = true
non_interactive = true

[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.0"

[tool.poe.tasks]

Expand All @@ -236,13 +231,13 @@ check = [
]

docs-autobuild = [
{ cmd = "sphinx-autobuild --open-browser --watch influxio doc doc/_build" }
{ cmd = "sphinx-autobuild --open-browser --watch influxio doc doc/_build" },
]
docs-html = [
{ cmd = "sphinx-build -W --keep-going doc doc/_build" }
{ cmd = "sphinx-build -W --keep-going doc doc/_build" },
]
docs-linkcheck = [
{ cmd = "sphinx-build -W --keep-going -b linkcheck doc doc/_build" }
{ cmd = "sphinx-build -W --keep-going -b linkcheck doc doc/_build" },
]

format = [
Expand Down

0 comments on commit fbc75b3

Please sign in to comment.