Skip to content

Commit

Permalink
[repo-helper] Configuration Update (#21)
Browse files Browse the repository at this point in the history
* Updated files with 'repo_helper'.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
repo-helper[bot] and pre-commit-ci[bot] authored May 13, 2024
1 parent d82093a commit c5c3932
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 83 deletions.
9 changes: 0 additions & 9 deletions .dependabot/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ updates:
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 0
reviewers:
- domdfcoding
2 changes: 1 addition & 1 deletion .github/workflows/docs_test_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Install and Build 🔧
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Check for changed files
uses: dorny/paths-filter@v2
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "3.6"

Expand All @@ -43,7 +43,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install tox
python -m pip install tox~=3.0
- name: "Run Flake8"
if: steps.changes.outputs.code == 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Check for changed files
uses: dorny/paths-filter@v2
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "3.6"

Expand All @@ -47,7 +47,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv!=20.16.0
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
- name: "Run mypy"
if: steps.changes.outputs.code == 'true'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"

Expand All @@ -59,7 +59,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv!=20.16.0
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
if: steps.setup-python.outcome == 'success'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"

Expand All @@ -60,7 +60,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv!=20.16.0
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
if: steps.setup-python.outcome == 'success'
Expand All @@ -74,11 +74,11 @@ jobs:
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"
if: startsWith(github.ref, 'refs/tags/')

- name: Setup Python 🐍
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
if: startsWith(github.ref, 'refs/tags/')
with:
python-version: 3.8
Expand All @@ -87,7 +87,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox
python -m pip install --upgrade tox~=3.0
- name: Build distributions 📦
if: startsWith(github.ref, 'refs/tags/')
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/python_ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ permissions:

jobs:
tests:
name: "macos-latest / Python ${{ matrix.config.python-version }}"
runs-on: "macos-latest"
name: "macos-13 / Python ${{ matrix.config.python-version }}"
runs-on: "macos-13"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8'
Expand All @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
uses: "actions/checkout@v4"

- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v2"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"

Expand All @@ -59,7 +59,7 @@ jobs:
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox virtualenv!=20.16.0
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
if: steps.setup-python.outcome == 'success'
Expand Down
19 changes: 11 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

exclude: ^$

ci:
autoupdate_schedule: quarterly

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.7.0
rev: v0.11.0
hooks:
- id: reformat-pyproject

Expand Down Expand Up @@ -40,18 +43,18 @@ repos:
- id: bind-requirements

- repo: https://github.com/domdfcoding/flake8-dunder-all
rev: v0.2.2
rev: v0.4.1
hooks:
- id: ensure-dunder-all
files: ^wx_icons_humanity/.*\.py$

- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.2
rev: v0.4.3
hooks:
- id: flake2lint

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: python-no-eval
- id: rst-backticks
Expand All @@ -67,24 +70,24 @@ repos:
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.5.1
hooks:
- id: remove-crlf
- id: forbid-crlf

- repo: https://github.com/python-formate/snippet-fmt
rev: v0.1.4
rev: v0.1.5
hooks:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.4.10
rev: v0.7.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

- repo: https://github.com/domdfcoding/dep_checker
rev: v0.7.0
rev: v0.8.0
hooks:
- id: dep_checker
args:
Expand Down
13 changes: 10 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ formats:
- pdf
- htmlzip
python:
version: 3.8
install:
- requirements: requirements.txt
- requirements: doc-source/requirements.txt
- method: pip
path: .
build:
os: ubuntu-20.04
tools:
python: '3.9'
jobs:
post_create_environment:
- pip install .
post_install:
- pip install sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5
11 changes: 7 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ This package provides wxPython wxArtProvider classes with icons from the Humanit
* - Other
- |license| |language| |requires|

.. |docs| image:: https://img.shields.io/readthedocs/custom_wx_icons_humanity/latest?logo=read-the-docs
:target: https://custom_wx_icons_humanity.readthedocs.io/en/latest
.. |docs| image:: https://img.shields.io/readthedocs/custom-wx-icons-humanity/latest?logo=read-the-docs
:target: https://custom-wx-icons-humanity.readthedocs.io/en/latest
:alt: Documentation Build Status

.. |docs_check| image:: https://github.com/domdfcoding/custom_wx_icons_humanity/workflows/Docs%20Check/badge.svg
Expand Down Expand Up @@ -96,7 +96,7 @@ This package provides wxPython wxArtProvider classes with icons from the Humanit
:target: https://github.com/domdfcoding/custom_wx_icons_humanity/commit/master
:alt: GitHub last commit

.. |maintained| image:: https://img.shields.io/maintenance/yes/2022
.. |maintained| image:: https://img.shields.io/maintenance/yes/2024
:alt: Maintenance

.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/wx_icons_humanity
Expand Down Expand Up @@ -127,9 +127,12 @@ To use ``wx_icons_humanity`` in your application:

.. code-block:: python
# this package
from wx_icons_humanity import wxHumanityIconTheme
class MyApp(wx.App):
def OnInit(self):
wx.ArtProvider.Push(wxHumanityIconTheme())
self.frame = TestFrame(None, wx.ID_ANY)
Expand All @@ -141,7 +144,7 @@ And then the icons can be accessed through wx.ArtProvider:

.. code-block:: python
wx.ArtProvider.GetBitmap('document-new', wx.ART_OTHER, wx.Size(48, 48))
wx.ArtProvider.GetBitmap("document-new", wx.ART_OTHER, wx.Size(48, 48))
Any `FreeDesktop Icon Theme Specification <https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html>`_ name can be used.

Expand Down
6 changes: 6 additions & 0 deletions doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,11 @@
def setup(app):
# 3rd party
from sphinx_toolbox.latex import better_header_layout
from sphinxemoji import sphinxemoji

app.connect("config-inited", lambda app, config: better_header_layout(config))
app.connect("build-finished", sphinxemoji.copy_asset_files)
app.add_js_file("https://unpkg.com/twemoji@latest/dist/twemoji.min.js")
app.add_js_file("twemoji.js")
app.add_css_file("twemoji.css")
app.add_transform(sphinxemoji.EmojiSubstitutions)
4 changes: 2 additions & 2 deletions doc-source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This package provides wxPython wxArtProvider classes with icons from the Humanit
- |license| |language| |requires|

.. |docs| rtfd-shield::
:project: custom_wx_icons_humanity
:project: custom-wx-icons-humanity
:alt: Documentation Build Status

.. |docs_check| actions-shield::
Expand Down Expand Up @@ -103,7 +103,7 @@ This package provides wxPython wxArtProvider classes with icons from the Humanit
:last-commit:
:alt: GitHub last commit

.. |maintained| maintained-shield:: 2022
.. |maintained| maintained-shield:: 2024
:alt: Maintenance

.. |pypi-downloads| pypi-shield::
Expand Down
16 changes: 8 additions & 8 deletions doc-source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
default-values>=0.5.0
default-values>=0.6.0
domdf-sphinx-theme>=0.3.0
dummy-wx>=0.3.0
extras-require>=0.2.0
html-section>=0.1.0
seed-intersphinx-mapping>=0.3.1
extras-require>=0.5.0
html-section>=0.3.0
seed-intersphinx-mapping>=1.2.2
sphinx<3.4.0,>=3.0.3
sphinx-copybutton>=0.2.12
sphinx-debuginfo>=0.1.0
sphinx-licenseinfo>=0.1.1
sphinx-debuginfo>=0.2.2
sphinx-licenseinfo>=0.3.1
sphinx-notfound-page>=0.7.1
sphinx-prompt>=1.1.0
sphinx-pyproject>=0.1.0
sphinx-tabs>=1.1.13
sphinx-toolbox>=2.13.0
sphinx-toolbox>=3.5.0
sphinxcontrib-httpdomain>=1.7.0
sphinxemoji>=0.1.6
toctree-plus>=0.5.0
toctree-plus>=0.6.1
Loading

0 comments on commit c5c3932

Please sign in to comment.