-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance, support for Wagtail 6.2, format with ruff, switch to `py…
…project.toml` (#87)
- Loading branch information
Showing
53 changed files
with
1,548 additions
and
1,003 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -30,7 +30,19 @@ jobs: | |
run: | | ||
npm run build | ||
qa_python: | ||
lint_python: | ||
name: Python Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_LATEST }} | ||
- uses: pre-commit/[email protected] | ||
|
||
test_python: | ||
services: | ||
postgres: | ||
image: postgres:16 | ||
|
@@ -49,14 +61,10 @@ jobs: | |
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python: ["3.9", "3.10", "3.11", "3.12"] | ||
experimental: [false] | ||
toxenv: ["py"] | ||
include: | ||
# Linting | ||
- python: "3.12" | ||
toxenv: flake8 | ||
experimental: false | ||
# Future Wagtail release from main branch (allowed to fail) | ||
- python: "3.12" | ||
toxenv: wagtailmain-sqlite | ||
|
@@ -94,7 +102,7 @@ jobs: | |
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
# This step runs only for jobs in the include matrix and covers linting | ||
# This step runs only for jobs in the include matrix | ||
- name: Run tox targets for Python ${{ matrix.python }} (${{ matrix.toxenv }}) | ||
if: ${{ matrix.toxenv != 'py' }} | ||
run: | | ||
|
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,9 @@ | ||
default_language_version: | ||
python: python3 | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.6.5' | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format |
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,10 +1,13 @@ | ||
include LICENSE *.rst *.txt *.md | ||
graft wagtail_ab_testing | ||
exclude * | ||
recursive-exclude * * | ||
|
||
include CHANGELOG.md | ||
include LICENSE | ||
include MANIFEST.in | ||
include README.md | ||
include pyproject.toml | ||
|
||
recursive-include wagtail_ab_testing/ *.html *.js *.py *.txt | ||
|
||
prune wagtail_ab_testing.egg-info | ||
prune wagtail_ab_testing/test | ||
prune wagtail_ab_testing/static_src | ||
|
||
global-exclude __pycache__ | ||
global-exclude *.py[co] | ||
global-exclude *.gitkeep *.gitignore |
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
Oops, something went wrong.