Skip to content

Commit

Permalink
switch to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Dec 18, 2024
1 parent a28e220 commit 2fe9a57
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 99 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ on:
- cron: '5 0 * * *'

jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
# matches compat target in setup.py
python-version: '3.7'
- name: Run flake8
run: |
pip install -U flake8 pep8-naming flake8-quotes flake8-comprehensions flake8-isort types-psutil numpy flake8-bugbear
flake8 setup.py doc/conf.py logpyle bin/* examples/*.py test/*.py
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Ruff check
run: |
python -m pip install ruff
ruff check
examples:
runs-on: ${{ matrix.os }}
Expand Down
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "logpyle"
version = "2023.5"
authors = [
{ name = "Andreas Kloeckner", email = "[email protected]" },
]
description = "Time series logging for Python"
dependencies = [
"pytools>=2011.1",
"pymbolic",
]
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]

[project.urls]
"Homepage" = "https://github.com/illinois-ceesd/logpyle/"
"Bug Tracker" = "https://github.com/illinois-ceesd/logpyle/issues"

[tool.ruff]
preview = true

[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"G", # flake8-logging-format
"I", # flake8-isort
"N", # pep8-naming
"NPY", # numpy
"Q", # flake8-quotes
"UP", # pyupgrade
"RUF", # ruff
"W", # pycodestyle
]

[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"


[tool.typos.default]
extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:\\s*disable-line$"
]

[tool.typos.files]
extend-exclude = [
]
26 changes: 0 additions & 26 deletions setup.cfg

This file was deleted.

60 changes: 0 additions & 60 deletions setup.py

This file was deleted.

0 comments on commit 2fe9a57

Please sign in to comment.