Skip to content

Commit

Permalink
Upgraded project infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Nov 26, 2023
1 parent 9078752 commit b35b2d1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
exclude: '^pint/_vendor'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.240'
rev: v0.1.5
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
Expand Down
22 changes: 8 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flexparser"
authors = [
{name="Hernan E. Grecco", email="hernan.grecco@gmail.com"}
]
license = {text = "BSD"}
license = {text = "BSD-3-Clause"}
description = "Parsing made fun ... using typing."
readme = "README.rst"
maintainers = [
Expand All @@ -24,31 +24,25 @@ classifiers = [
"Topic :: Utilities",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dynamic = ["version"] # Version is taken from git tags using setuptools_scm
dependencies = [
"typing_extensions"
]
dynamic = ["dependencies", "optional-dependencies", "version"]

[tool.setuptools.package-data]
flexparser = ["py.typed"]

[project.optional-dependencies]
test = [
"pytest",
"pytest-mpl",
"pytest-cov",
"pytest-subtests"
]

[project.urls]
Homepage = "https://github.com/hgrecco/flexparser"

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

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
optional-dependencies.test = {file = "requirements.test.txt"}

[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"
Expand Down
4 changes: 4 additions & 0 deletions requirements.test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest
pytest-mpl
pytest-cov
pytest-subtests
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typing_extensions

0 comments on commit b35b2d1

Please sign in to comment.