-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch build system to pyproject.toml (that was painful)
- Loading branch information
Showing
7 changed files
with
103 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: mypy --strict | ||
language: system | ||
types: [python] | ||
- id: black | ||
name: black | ||
entry: black | ||
language: system | ||
types: [python] | ||
- id: isort | ||
name: isort | ||
entry: isort | ||
language: system | ||
types: [python] | ||
- id: flake8 | ||
name: flake8 | ||
entry: flake8 | ||
language: system | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: mypy | ||
name: mypy | ||
entry: mypy --strict | ||
language: system | ||
types: [python] | ||
- id: ruff-check | ||
name: ruff check | ||
entry: ruff check --fix | ||
language: system | ||
types: [python] | ||
- id: ruff-format | ||
name: ruff format | ||
entry: ruff format | ||
language: system | ||
types: [python] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[project] | ||
name = "bibtexautocomplete" | ||
authors = [{ name = "Dorian Lesbre", email = "dorian.lesbre@gmail.com" }] | ||
maintainers = [{ name = "Dorian Lesbre", email = "dorian.lesbre@gmail.com" }] | ||
dynamic = ["version"] | ||
description = "Script to autocomplete bibtex files by polling online databases" | ||
requires-python = ">= 3.8" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
keywords = ["bibtex", "biblatex", "latex", "autocomplete", "btac"] | ||
dependencies = [ | ||
"bibtexparser<2.0.0", | ||
"alive-progress>=3.0.0", | ||
] | ||
classifiers = [ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
"Development Status :: 5 - Production/Stable", | ||
# Indicate who your project is intended for | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Environment :: Console", | ||
"Natural Language :: English", | ||
# Pick your license as you wish (should match "license" above) | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent", | ||
"Topic :: Text Processing :: Markup :: LaTeX", | ||
"Topic :: Utilities", | ||
"Topic :: Scientific/Engineering", | ||
"Typing :: Typed", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/dlesbre/bibtex-autocomplete" | ||
Repository = "https://github.com/dlesbre/bibtex-autocomplete/spam.git" | ||
Issues = "https://github.com/dlesbre/bibtex-autocomplete/issues" | ||
Changelog = "https://github.com/dlesbre/bibtex-autocomplete/blob/master/CHANGELOG.md" | ||
|
||
[project.scripts] | ||
btac = "bibtexautocomplete.core:main" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pre-commit", | ||
"pytest", | ||
"mypy", | ||
"ruff", | ||
"coverage", | ||
"pytest-cov", | ||
] | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
select = ["E", "F", "B", "W", "I"] | ||
|
||
[tool.mypy] | ||
strict = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = "bibtexparser.*" | ||
ignore_missing_imports = true |