Skip to content

Fix Python and docs tests #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Check docs links
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
- name: Check docs build
run: |
pip install -r requirements/build-docs.txt
linkcheckMarkdown docs/ -v -r
linkcheckMarkdown README.md -v -r
linkcheckMarkdown CHANGELOG.md -v -r
cd docs
mkdocs build --strict
- name: Check docs examples
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ venv.bak/

# mkdocs documentation
/site
docs/site

# mypy
.mypy_cache/
Expand Down
7 changes: 7 additions & 0 deletions .linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dirs:
- ./docs
files:
- README.md
- CHANGELOG.md
useGitIgnore: true
modifiedFilesOnly: false
1 change: 0 additions & 1 deletion requirements/build-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mkdocs
mkdocs-git-revision-date-localized-plugin
mkdocs-material==9.4.0
mkdocs-include-markdown-plugin
linkcheckmd
mkdocs-spellcheck[all]
mkdocs-git-authors-plugin
mkdocs-minify-plugin
Expand Down
2 changes: 1 addition & 1 deletion src/reactpy_django/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def clean_user_data(verbosity: int = 1):
start_time = timezone.now()
user_model = get_user_model()
all_users = user_model.objects.all()
all_user_pks = all_users.values_list(user_model._meta.pk.name, flat=True) # type: ignore
all_user_pks = all_users.values_list(user_model._meta.pk.name, flat=True)

# Django doesn't support using QuerySets as an argument with cross-database relations.
if user_model.objects.db != UserDataModel.objects.db:
Expand Down
Loading