Skip to content

Commit

Permalink
Adding check-sdist, build-and-inspect-python-package, and `setup-…
Browse files Browse the repository at this point in the history
…uv` (#7)

* Ran 'pre-commit autoupdate' and 'uv lock --upgrade'

* Moved to astral-sh/setup-uv in CI

* Added check-sdist tool to pre-commit and README

* Added hynek/build-and-inspect-python-package
  • Loading branch information
jamesbraza authored Oct 14, 2024
1 parent 8a79651 commit a697d4c
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 79 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- run: uv run pytest -n auto
18 changes: 12 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ default_language_version:

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black-jupyter
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -17,7 +17,7 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
Expand Down Expand Up @@ -57,25 +57,31 @@ repos:
- id: codespell
additional_dependencies: [".[toml]"]
- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
rev: v2.13.1-beta
hooks:
- id: hadolint-docker
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.19
rev: v0.20.2
hooks:
- id: validate-pyproject
additional_dependencies:
- validate-pyproject-schema-store[all]
- repo: https://github.com/henryiii/check-sdist
rev: v1.1.0
hooks:
- id: check-sdist
args: [--inject-junk]
additional_dependencies: [setuptools>=64, setuptools_scm>=8]
- repo: https://github.com/jsh9/markdown-toc-creator
rev: 0.0.8
hooks:
- id: markdown-toc-creator
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.2.0
rev: 3.2.3
hooks:
- id: sqlfluff-fix
- repo: https://github.com/pycqa/flake8
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,36 @@ configurations for `mypy`, `ruff`, `uv`, etc. will also be validated.
</td></tr>
<tr><td>

[`check-sdist`](https://github.com/henryiii/check-sdist)

</td><td>Yes</td><td>

Checking SDist build

</td><td>

`pre-commit` hook

</td><td>

Unclear if this tool is a subset of `build-and-inspect-python-package` below.

</td></tr>
<tr><td>

[`build-and-inspect-python-package`](https://github.com/hynek/build-and-inspect-python-package)

</td><td>No</td><td>

Checking SDist, wheel, and README.

</td><td>

GitHub Actions

</td><td></td></tr>
<tr><td>

[`ini2toml`](https://github.com/abravalheri/ini2toml)
([docs](https://ini2toml.readthedocs.io/en/latest/))

Expand Down
Loading

0 comments on commit a697d4c

Please sign in to comment.