Skip to content

Commit 176e1b5

Browse files
authored
Merge pull request #20 from creativecommons/readme-ci
added black and flake8 info
2 parents 2e6159c + cbc9056 commit 176e1b5

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

README.md

+24-9
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,30 @@ This will generate the icons in the directory `www/i` directory.
6464

6565
### Development
6666

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
7691
[pycairo]: https://pycairo.readthedocs.io/en/latest/
7792
[pygobject]: https://pygobject.readthedocs.io/en/latest/index.html
7893
[pcfontmap]: https://lazka.github.io/pgi-docs/PangoCairo-1.0/classes/FontMap.html#PangoCairo.FontMap

0 commit comments

Comments
 (0)