Skip to content

Commit

Permalink
Merge pull request #9 from henryiii/henryiii/chore/flit
Browse files Browse the repository at this point in the history
chore: use flit-core
  • Loading branch information
sirosen authored Oct 29, 2024
2 parents 84de7a4 + 2acde84 commit f2d3661
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ repos:
rev: v2.3.0
hooks:
- id: codespell
- repo: https://github.com/henryiii/check-sdist
rev: v1.2.0
hooks:
- id: check-sdist
args: [--inject-junk]
additional_dependencies: ["flit-core"]
- repo: "local"
hooks:
# When Dependabot submits a PR to update a workflow,
Expand Down
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit-core"]
build-backend = "flit_core.buildapi"

[dependency-groups]
coverage = ["coverage[toml]"]
Expand Down Expand Up @@ -48,8 +48,10 @@ source = "https://github.com/sirosen/dependency-groups"
changelog = "https://github.com/sirosen/dependency-groups/blob/main/CHANGELOG.rst"
documentation = "https://dependency-groups.readthedocs.io/"

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

[tool.flit.sdist]
include = ["LICENSE.txt", "CHANGELOG.rst", "tests/*.py", "tox.ini"]


[tool.uv]
environments = [
Expand Down Expand Up @@ -91,3 +93,6 @@ files = ["src"]
[tool.isort]
profile = "black"
known_first_party = ["mddj"]

[tool.check-sdist]
git-only = [".*", "Makefile", "docs/*", "scripts/*"]

0 comments on commit f2d3661

Please sign in to comment.