Skip to content

Commit

Permalink
Run meta/config.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Aug 20, 2024
1 parent 646ff26 commit 94eac07
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
name: pre-commit

on:
pull_request:
push:
branches:
- master
# Allow to run this workflow manually from the Actions tab
workflow_dispatch:

env:
FORCE_COLOR: 1

jobs:
pre-commit:
name: pre-commit linting
name: linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,7 +24,9 @@ jobs:
python-version: 3.x
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
extra_args: --all-files --show-diff-on-failure
env:
PRE_COMMIT_COLOR: always
- uses: pre-commit-ci/[email protected]
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
[meta]
template = "zope-product"
commit-id = "994c74d7"
commit-id = "da0ad14b"

[python]
with-pypy = false
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
minimum_pre_commit_version: '3.6'
repos:
- repo: https://github.com/pycqa/isort
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include *.rst
include *.txt
include buildout.cfg
include tox.ini
include .pre-commit-config.yaml

recursive-include docs *.py
recursive-include docs *.rst
Expand Down
18 changes: 9 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ commands =
!universal2: {envdir}/bin/alltests --layer '!Products.PluginIndexes' {posargs:-vc}
allowlist_externals = *

[testenv:lint]
basepython = python3
description = This env runs all linters configured in .pre-commit-config.yaml
skip_install = true
deps =
pre-commit
commands_pre =
commands =
pre-commit run --all-files --show-diff-on-failure

[testenv:release-check]
description = ensure that the distribution is ready to release
Expand All @@ -77,6 +68,15 @@ commands =
python -m build --sdist --no-isolation
twine check dist/*

[testenv:lint]
description = This env runs all linters configured in .pre-commit-config.yaml
basepython = python3
skip_install = true
deps =
pre-commit
commands_pre =
commands =
pre-commit run --all-files --show-diff-on-failure

[testenv:docs]
basepython = python3
Expand Down

0 comments on commit 94eac07

Please sign in to comment.