@@ -64,15 +64,30 @@ This will generate the icons in the directory `www/i` directory.
64
64
65
65
# ## Development
66
66
67
- - * Pycairo is a Python module providing bindings for the cairo graphics
68
- library* ([Overview — Pycairo documentation][pycairo]).
69
- - * PyGObject is a Python package which provides bindings for GObject based
70
- libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more*
71
- ([Overview — PyGObject][pygobject]).
72
- - PangoCairo is used to load the system fonts and check if the " CC Icons" font
73
- is available. See [PangoCairo.FontMap - Interfaces -
74
- PangoCairo 1.0][pcfontmap].
75
-
67
+ - Style/Syntax
68
+ - Github Actions check the style and syntax with [black][black] and
69
+ [flake8][flake8]. Run the following commands before submitting a pull
70
+ request:
71
+ - Reformat with black using a maxiumum of 79 charaters per line:
72
+ ` ` ` shell
73
+ black -l 79 ./scripts/genicons.py
74
+ ` ` `
75
+ - Check syntax with flake8:
76
+ ` ` ` shell
77
+ flake8 ./scripts/genicons.p
78
+ ` ` `
79
+ - Dependencies
80
+ - * Pycairo is a Python module providing bindings for the cairo graphics
81
+ library* ([Overview — Pycairo documentation][pycairo]).
82
+ - * PyGObject is a Python package which provides bindings for GObject based
83
+ libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more*
84
+ ([Overview — PyGObject][pygobject]).
85
+ - PangoCairo is used to load the system fonts and check if the " CC Icons" font
86
+ is available. See [PangoCairo.FontMap - Interfaces -
87
+ PangoCairo 1.0][pcfontmap].
88
+
89
+ [black]: https://github.com/python/black
90
+ [flake8]: https://gitlab.com/pycqa/flake8
76
91
[pycairo]: https://pycairo.readthedocs.io/en/latest/
77
92
[pygobject]: https://pygobject.readthedocs.io/en/latest/index.html
78
93
[pcfontmap]: https://lazka.github.io/pgi-docs/PangoCairo-1.0/classes/FontMap.html#PangoCairo.FontMap
0 commit comments