Skip to content

Commit

Permalink
Switching to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Jun 5, 2023
1 parent 3f65246 commit f3f19ac
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 41 deletions.
25 changes: 19 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: debug-statements
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.9.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
args: [--preserve-quotes, --autofix, --indent, '2']
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-no-log-warn
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.1
hooks:
Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]

[project]
authors = [{name = "Tom de Geus", email = "tom@geus.me"}]
classifiers = ["License :: OSI Approved :: MIT License"]
dependencies = ["click", "h5py", "prettytable", "pyyaml", "termcolor"]
description = "Wrapper around h5py"
dynamic = ["version"]
name = "GooseHDF5"
readme = "README.md"
requires-python = ">=3.6"

[project.scripts]
G5check = "GooseHDF5.cli.G5check:main"
G5compare = "GooseHDF5:_G5compare_cli"
G5list = "GooseHDF5:_G5list_cli"
G5modify = "GooseHDF5:_G5modify_cli"
G5print = "GooseHDF5:_G5print_cli"
G5repack = "GooseHDF5.cli.G5repack:main"
G5repair = "GooseHDF5.cli.G5repair:main"

[project.urls]
Source = "https://github.com/tdegeus/GooseHDF5"

[tool.setuptools_scm]
write_to = "GooseHDF5/_version.py"
35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

0 comments on commit f3f19ac

Please sign in to comment.