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

[pre-commit.ci] pre-commit autoupdate #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Expand Up @@ -5,12 +5,12 @@ exclude: ^$

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

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -40,51 +40,51 @@ 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
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-runtime-typing

- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.5.5
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
5 changes: 4 additions & 1 deletion README.rst
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
5 changes: 4 additions & 1 deletion doc-source/usage.rst
Expand Up @@ -6,9 +6,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 @@ -20,7 +23,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
21 changes: 10 additions & 11 deletions pyproject.toml
Expand Up @@ -29,14 +29,13 @@ classifiers = [
]
dynamic = [ "dependencies",]

[project.license]
file = "LICENSE"

[[project.authors]]
name = "Dominic Davis-Foster"
email = "dominic@davis-foster.co.uk"


[project.license]
file = "LICENSE"

[project.urls]
Homepage = "https://github.com/domdfcoding/custom_wx_icons_humanity"
"Issue Tracker" = "https://github.com/domdfcoding/custom_wx_icons_humanity/issues"
Expand Down Expand Up @@ -159,13 +158,6 @@ show_error_codes = true
[tool.snippet-fmt]
directives = [ "code-block",]

[tool.dependency-dash."requirements.txt"]
order = 10

[tool.dependency-dash."doc-source/requirements.txt"]
order = 30
include = false

[tool.snippet-fmt.languages.python]
reformat = true

Expand All @@ -175,3 +167,10 @@ reformat = true
[tool.snippet-fmt.languages.ini]

[tool.snippet-fmt.languages.json]

[tool.dependency-dash."requirements.txt"]
order = 10

[tool.dependency-dash."doc-source/requirements.txt"]
order = 30
include = false