Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Format pyproject.toml using latest pyproject-fmt #101

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 73 additions & 79 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 = "skeem"
description = "Infer SQL DDL statements from tabular data"
Expand All @@ -30,8 +26,8 @@ keywords = [
"json",
"jsonl",
"ldjson",
"netcdf",
"ndjson",
"netcdf",
"pandas",
"parquet",
"rdbms",
Expand Down Expand Up @@ -79,7 +75,6 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Documentation",
Expand All @@ -106,7 +101,7 @@ dependencies = [
"ddlgenerator<0.2",
"frictionless[excel,json,ods,parquet,sql]>=5.16,<5.19",
"fsspec[gcs,github,http,s3]==2024.10.0",
"json_stream<3",
"json-stream<3",
"line-protocol-parser<2",
"numpy<3",
"odfpy<2",
Expand All @@ -117,8 +112,7 @@ dependencies = [
"sqlmakeuper<0.2",
"urllib3<3",
]
[project.optional-dependencies]
develop = [
optional-dependencies.develop = [
"hunter<4",
"mypy<1.13",
"poethepoet<0.30",
Expand All @@ -127,98 +121,62 @@ develop = [
"types-requests<2.33",
"validate-pyproject<0.22",
]
release = [
optional-dependencies.release = [
"build<2",
"twine<6",
]
scientific = [
optional-dependencies.scientific = [
"cfgrib<1",
"cftime<2",
"scipy<2",
"xarray<2025",
]
test = [
optional-dependencies.test = [
"pytest<9",
"pytest-cov<6",
"pytest-timeout<3",
]
[project.urls]
changelog = "https://github.com/daq-tools/skeem/blob/main/CHANGES.rst"
documentation = "https://github.com/daq-tools/skeem"
homepage = "https://github.com/daq-tools/skeem"
repository = "https://github.com/daq-tools/skeem"
[project.scripts]
skeem = "skeem.cli:cli"
urls.changelog = "https://github.com/daq-tools/skeem/blob/main/CHANGES.rst"
urls.documentation = "https://github.com/daq-tools/skeem"
urls.homepage = "https://github.com/daq-tools/skeem"
urls.repository = "https://github.com/daq-tools/skeem"
scripts.skeem = "skeem.cli:cli"

[tool.setuptools.packages.find]
namespaces = false

[tool.black]
line-length = 120

[tool.coverage.run]
branch = false
omit = [
"skeem/ddlgen/ddlgenerator.py",
"skeem/ddlgen/sources.py",
"skeem/fastparquet/core.py",
"skeem/pandas/io_common.py",
"tests/*",
]
source = ["skeem"]

[tool.coverage.report]
fail_under = 0
show_missing = true

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

[tool.pytest.ini_options]
addopts = "-ra -q --verbosity=3 --doctest-modules --cov --cov-report=term-missing --cov-report=xml"
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
testpaths = [
"skeem",
"tests",
]
xfail_strict = true
markers = [
"roadrunner",
"slow",
]

[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 @@ -232,19 +190,55 @@ lint.extend-ignore = [
"RET505",
]

[tool.ruff.lint.per-file-ignores]
"skeem/core.py" = ["E402"]
"skeem/fastparquet/*" = ["E722"]
"skeem/pandas/*" = ["S101"]
"skeem/report.py" = ["T201"]
"skeem/util/platform.py" = ["T201"]
"skeem/util/report.py" = ["T201"]
"tests/*" = ["S101"] # Use of `assert` detected
"tests/*roadrunner*" = ["ERA001"] # Use of `assert` detected
lint.per-file-ignores."skeem/core.py" = [ "E402" ]
lint.per-file-ignores."skeem/fastparquet/*" = [ "E722" ]
lint.per-file-ignores."skeem/pandas/*" = [ "S101" ]
lint.per-file-ignores."skeem/report.py" = [ "T201" ]
lint.per-file-ignores."skeem/util/platform.py" = [ "T201" ]
lint.per-file-ignores."skeem/util/report.py" = [ "T201" ]
lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected
lint.per-file-ignores."tests/*roadrunner*" = [ "ERA001" ] # Use of `assert` detected

[tool.setuptools.packages.find]
namespaces = false
[tool.pytest.ini_options]
addopts = "-ra -q --verbosity=3 --doctest-modules --cov --cov-report=term-missing --cov-report=xml"
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
testpaths = [
"skeem",
"tests",
]
xfail_strict = true
markers = [
"roadrunner",
"slow",
]

[tool.coverage.run]
branch = false
omit = [
"skeem/ddlgen/ddlgenerator.py",
"skeem/ddlgen/sources.py",
"skeem/fastparquet/core.py",
"skeem/pandas/io_common.py",
"tests/*",
]
source = [ "skeem" ]

[tool.coverage.report]
fail_under = 0
show_missing = true

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

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

# ===================
# Tasks configuration
Expand Down
Loading