Skip to content
Snippets Groups Projects
pyproject.toml 2.02 KiB
Newer Older
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2", 'setuptools_scm_git_archive']
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "aosstower/version.py"

[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
default_section = "THIRDPARTY"
known_first_party = "aosstower"
line_length = 120
skip = [".gitignore", "aosstower/version.py"]

[tool.black]
line-length = 120
exclude = '''
(
  \.git
  | build
  | dist
  | aosstower/version\.py
)

'''

[tool.ruff]
line-length = 120
select = [
    "E", "F", "W", "C90", "I", "N", "D", "UP", "YTT", "S", "BLE", "B", "A",
    "COM", "C4", "T10", "EXE", "ISC", "ICN", "INP", "PIE", "T20", "PYI", "PT",
    "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "ARG", "PTH", "ERA", "PD",
    "PGH", "PL", "TRY", "NPY", "RUF",
]
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D213", "B008"]

[tool.ruff.per-file-ignores]
"aosstower/tests/*" = ["S", "PLR2004"]
David Hoese's avatar
David Hoese committed
"aosstower/level_b1/quicklook.py" = ["PLR0913"]
David Hoese's avatar
David Hoese committed
"aosstower/level_b1/nc.py" = ["PLR0913"]
David Hoese's avatar
David Hoese committed

[tool.ruff.pydocstyle]
convention = "google"

[tool.mypy]
python_version = "3.10"

[tool.coverage]
relative_files = true
omit = ["aosstower/version.py"]

[project]
name = "aosstower"
authors = [
    {name = "David Hoese", email = "david.hoese@ssec.wisc.edu"},
]
description = "UW AOSS Rooftop Instrument Group Met Tower"
readme = "README.md"
keywords = ["metobs"]
license = {text = "MIT"}
classifiers = [
    "Framework :: Flask",
    "Programming Language :: Python :: 3",
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
    "numpy",
    "pandas",
]
dynamic = ["version"]

[project.optional-dependencies]
tests = [
    "pytest",
]

[tool.setuptools]
packages = ["aosstower"]