Skip to content
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

chore(.github): sync with debug-toolbar scaffold instead of Flask #68

Merged
merged 3 commits into from
May 21, 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
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
name: Bug report
about: Report a bug in Flask-princial
about: Report a bug in Flask-DebugToolbar (not other projects which depend on Flask-DebugToolbar)
---

<!--
This issue tracker is a tool to address bugs in Flask itself. Please use
GitHub Discussions or the Pallets Discord for questions about your own code.
This issue tracker is a tool to address bugs in Flask-DebugToolbar itself.
Please use GitHub Discussions or the Pallets Discord for questions about your
own code.

Replace this comment with a clear outline of what the bug is.
-->
Expand All @@ -24,4 +25,5 @@ Describe the expected behavior that should have happened but didn't.
Environment:

- Python version:
- Flask-principal version:
- Flask-DebugToolbar version:
- Flask version:
9 changes: 3 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Security issue
url: https://github.com/pallets-eco/flask-principal/security/advisories/new
about: Do not report security issues publicly. Create a private advisory.
- name: Questions
url: https://github.com/pallets-eco/flask-principal/discussions/
- name: Questions on Discussions
url: https://github.com/pallets-eco/flask-debugtoolbar/discussions/
about: Ask questions about your own code on the Discussions tab.
- name: Questions on
- name: Questions on Chat
url: https://discord.gg/pallets
about: Ask questions about your own code on our Discord chat.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Feature request
about: Suggest a new feature for Flask-principal
about: Suggest a new feature for Flask-DebugToolbar
---

<!--
Expand All @@ -10,6 +10,6 @@ Include details such as links to relevant specs or previous discussions.

<!--
Replace this comment with an example of the problem which this feature
would resolve. Is this problem solvable without changes to Flask, such
as by subclassing or using an extension?
would resolve. Is this problem solvable without changes to Flask-DebugToolbar,
such as by subclassing or using an extension?
-->
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fixes #<issue number>
-->

<!--
Ensure each step in CONTRIBUTING.rst is complete, especially the following:
Ensure each step in the contributing guide is complete, especially the following:

- Add tests that demonstrate the correct behavior of the change. Tests
should fail without the change.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# files in the draft release.
environment:
name: publish
url: https://pypi.org/project/Flask-principal/${{ github.ref_name }}
url: https://pypi.org/project/Flask-DebugToolbar/${{ github.ref_name }}
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
23 changes: 1 addition & 22 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@ jobs:
fail-fast: false
matrix:
include:
- {python: '3.13'}
- {python: '3.12'}
- {name: Windows, python: '3.12', os: windows-latest}
- {name: Mac, python: '3.12', os: macos-latest}
- {python: '3.11'}
- {python: '3.10'}
- {python: '3.9'}
- {python: '3.8'}
- {name: PyPy, python: 'pypy-3.10', tox: pypy310}
- {name: Minimum Versions, python: '3.12', tox: py-min}
- {name: Development Versions, python: '3.8', tox: py-dev}
- {name: Minimal, python: '3.12', tox: minimal}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
Expand All @@ -42,19 +37,3 @@ jobs:
cache-dependency-path: requirements*/*.txt
- run: pip install tox
- run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }}
typing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.x'
cache: pip
cache-dependency-path: requirements*/*.txt
- name: cache mypy
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ./.mypy_cache
key: mypy|${{ hashFiles('pyproject.toml') }}
- run: pip install tox
- run: tox run -e typing
22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@ source = ["src", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]

[tool.mypy]
python_version = "3.8"
files = ["src", "tests"]
show_error_codes = true
pretty = true
strict = true

[[tool.mypy.overrides]]
ignore_missing_imports = true

[tool.pyright]
pythonVersion = "3.8"
include = ["src", "tests"]
Expand Down
1 change: 0 additions & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
-r docs.txt
-r tests.txt
-r typing.txt
pre-commit
tox
24 changes: 2 additions & 22 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ imagesize==1.4.1
iniconfig==2.0.0
# via
# -r tests.txt
# -r typing.txt
# pytest
jinja2==3.1.4
# via
Expand All @@ -61,22 +60,12 @@ markupsafe==2.1.5
# via
# -r docs.txt
# jinja2
mypy==1.10.0
# via -r typing.txt
mypy-extensions==1.0.0
# via
# -r typing.txt
# mypy
nodeenv==1.8.0
# via
# -r typing.txt
# pre-commit
# pyright
# via pre-commit
packaging==24.0
# via
# -r docs.txt
# -r tests.txt
# -r typing.txt
# pallets-sphinx-themes
# pyproject-api
# pytest
Expand All @@ -91,7 +80,6 @@ platformdirs==4.2.2
pluggy==1.5.0
# via
# -r tests.txt
# -r typing.txt
# pytest
# tox
pre-commit==3.7.1
Expand All @@ -102,12 +90,8 @@ pygments==2.17.2
# sphinx
pyproject-api==1.6.1
# via tox
pyright==1.1.363
# via -r typing.txt
pytest==8.2.1
# via
# -r tests.txt
# -r typing.txt
# via -r tests.txt
pyyaml==6.0.1
# via pre-commit
requests==2.32.0
Expand Down Expand Up @@ -151,10 +135,6 @@ sphinxcontrib-serializinghtml==1.1.5
# sphinx
tox==4.15.0
# via -r dev.in
typing-extensions==4.11.0
# via
# -r typing.txt
# mypy
urllib3==2.2.1
# via
# -r docs.txt
Expand Down
1 change: 0 additions & 1 deletion requirements/typing.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
mypy
pyright
pytest
6 changes: 0 additions & 6 deletions requirements/typing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#
iniconfig==2.0.0
# via pytest
mypy==1.10.0
# via -r typing.in
mypy-extensions==1.0.0
# via mypy
nodeenv==1.8.0
# via pyright
packaging==24.0
Expand All @@ -20,8 +16,6 @@ pyright==1.1.363
# via -r typing.in
pytest==8.2.1
# via -r typing.in
typing-extensions==4.11.0
# via mypy

# The following packages are considered to be unsafe in a requirements file:
# setuptools
Loading