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

Switching to pyproject.toml #73

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
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
45 changes: 26 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,59 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.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.4.0
rev: v2.11.0
hooks:
- id: pretty-format-yaml
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.10.0
hooks:
- id: black
args: [--safe, --quiet, --line-length=100]
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.1
hooks:
- id: autoflake
args: [--in-place, --remove-unused-variable]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
rev: v3.12.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8
args: ['--ignore=E722,W503', --max-line-length=100, '--per-file-ignores=*/__init__.py:F401']
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/tdegeus/conda_envfile
rev: v0.4.1
rev: v0.4.2
hooks:
- id: conda_envfile_parse
files: environment.yaml
# check docstrings
# - repo: https://github.com/econchick/interrogate
# rev: 1.4.0
# hooks:
# - id: interrogate
# args: [-vv, -i, --fail-under=80]
files: environment.yaml
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[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 = ["arxiv", "bibtexparser", "click", "docopt", "GitPython", "numpy", "PyYAML", "requests", "tqdm"]
description = "Reformat BibTeX files"
dynamic = ["version"]
name = "GooseBib"
readme = "README.md"
requires-python = ">=3.6"

[project.scripts]
GbibCheckAuthors = "GooseBib.cli.GbibCheckAuthors:main"
GbibCheckKeys = "GooseBib.cli.GbibCheckKeys:main"
GbibCheckLink = "GooseBib.cli.GbibCheckLink:main"
GbibClean = "GooseBib.bibtex:GbibClean"
GbibDiscover = "GooseBib.bibtex:GbibDiscover"
GbibList = "GooseBib.cli.GbibList:main"
GbibParse = "GooseBib.cli.GbibParse:main"
GbibSelect = "GooseBib.cli.GbibSelect:main"
GbibSelectAlias = "GooseBib.cli.GbibSelectAlias:main"
GbibShowAuthorRename = "GooseBib.bibtex:GbibShowAuthorRename"

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

[tool.setuptools.package-data]
myModule = ["*.yaml"]

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

This file was deleted.

Loading