Skip to content

Commit 5b49b5f

Browse files
authored
Merge pull request #1 from pythonnz/committee-adjustments
Adjust boiler plate text following committee meetings, add TODO
2 parents 34f41da + 5b84d86 commit 5b49b5f

11 files changed

Lines changed: 1373 additions & 832 deletions

File tree

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[*.{css,js,json,less,md,py,rst,sass,scss,svg.j2,xml,yaml,yml}]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_size = 4
5+
indent_style = space
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.{json,yml,yaml,rst,md}]
10+
indent_size = 2

.github/workflows/pre-commit.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main*"
7+
push:
8+
branches:
9+
- "main"
10+
11+
jobs:
12+
pre-commit:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
- name: Get python version
20+
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
21+
- uses: actions/cache@v4
22+
with:
23+
path: ~/.cache/pre-commit
24+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
25+
- name: Install pre-commit
26+
run: pip install pre-commit
27+
- name: Run pre-commit
28+
run: pre-commit run --all-files --show-diff-on-failure --color=always
29+
- name: Check that all files generated by pre-commit are in git
30+
run: |
31+
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
32+
if [ "$newfiles" != "" ] ; then
33+
echo "Please check-in the following files:"
34+
echo "$newfiles"
35+
exit 1
36+
fi

.gitignore

Whitespace-only changes.

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
default_language_version:
2+
python: python3
3+
node: "22.9.0"
4+
repos:
5+
- repo: local
6+
hooks:
7+
- id: prettier
8+
name: prettier (with plugin-xml)
9+
entry: prettier
10+
args:
11+
- --write
12+
- --list-different
13+
- --ignore-unknown
14+
types: [text]
15+
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
16+
language: node
17+
additional_dependencies:
18+
- "prettier@3.3.3"
19+
- "@prettier/plugin-xml@3.4.1"
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v4.6.0
22+
hooks:
23+
- id: trailing-whitespace
24+
- id: end-of-file-fixer
25+
- id: debug-statements
26+
- id: fix-encoding-pragma
27+
args: ["--remove"]
28+
- id: check-case-conflict
29+
- id: check-docstring-first
30+
- id: check-executables-have-shebangs
31+
- id: check-merge-conflict
32+
- id: check-symlinks
33+
- id: check-xml
34+
- id: mixed-line-ending
35+
args: ["--fix=lf"]
36+
- repo: https://github.com/astral-sh/ruff-pre-commit
37+
rev: v0.6.8
38+
hooks:
39+
- id: ruff
40+
args: [--fix, --exit-non-zero-on-fix]
41+
- id: ruff-format
42+
- repo: https://github.com/PyCQA/pylint
43+
rev: v3.3.4
44+
hooks:
45+
- id: pylint
46+
- id: pylint
47+
additional_dependencies:
48+
- "pdfbaker"

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,44 @@
11
# Python New Zealand - Rules
22

3-
Official rules of [Python New Zealand](https://python.nz).<br>
4-
This repository holds the authoritative source code of the documents and tracks changes to them.
3+
Official rules of [Python New Zealand](https://python.nz).<br> This repository holds the
4+
authoritative source code of the documents and tracks changes to them.
55

6-
* Constitution
7-
* Bylaws
8-
* Code of Conduct
6+
- [Constitution](constitution/constitution.md)
7+
- Bylaws
8+
- Code of Conduct
99

1010
## How to create documents
1111

1212
### Constitution
1313

14-
This is Markdown source code to produce HTML (for https://python.nz) and PDF (for printing)<br>
15-
*Note: On github.com, bullet points will show in addition to numbering (styling is ignored)*
14+
This is Markdown source code to produce HTML (for https://python.nz) and PDF (for
15+
printing)<br> _Note: On github.com, bullet points will show in addition to numbering
16+
(styling is ignored). Also, clauses following a bullet list wrongly remain at the same
17+
indentation level as the bullet list - this seems to be a rendering bug in github. The
18+
HTML/PDF results look fine._
1619

1720
#### Create HTML
1821

1922
Use [pandoc](https://pandoc.org):
23+
2024
```
2125
pandoc -s constitution.md -o constitution.html -c constitution.css -V "pagetitle:Constitution"
2226
```
23-
(`-s` standalone = embed external CSS, `pagetitle` to suppress title warning without inserting another headline)
27+
28+
(`-s` standalone = embed external CSS, `pagetitle` to suppress title warning without
29+
inserting another headline)
2430

2531
#### Table of Contents
2632

27-
Optionally, `--toc` will also create a table of contents with headline links (handy but not fit for PDF)
33+
Optionally, `--toc` will also create a table of contents with headline links (handy but
34+
not fit for PDF)
35+
2836
```
2937
pandoc -s constitution.md -o constitution.html -c constitution.css -V "pagetitle:Constitution" --toc
3038
```
3139

3240
#### Create PDF
3341

34-
Use [weasyprint](https://weasyprint.org) or similar, or just print from your browser:
35-
```
36-
weasyprint constitution.html constitution.pdf
37-
```
38-
42+
Just print the HTML from your browser to a PDF file.<br> If you want to use a dedicated
43+
conversion tool instead, check that it does the job correctly (the numbering of bullets
44+
and sub bullets is where [weasyprint](https://weasyprint.org/) failed)

TODO.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Procedural changes and other consequences
2+
3+
In order to actually follow our new constitution, we'll need to make some changes.
4+
5+
- [ ] (Vice) President -> (Vice) Chairperson (email / alias, 1Password, website,
6+
HelloClub)
7+
- [ ] Upon adoption at GM: confirm existing life members
8+
- [ ] Upon adoption at GM: confirm existing membership fees
9+
- [ ] Election process: only officers are elected by GM, positions within committee
10+
- [ ] Election process: must FIRST confirm they would stand if elected
11+
- [ ] Election process: must FIRST certify that they're not ineligible
12+
- [ ] Election process: counting scrutineers are 2 members who are not nominees
13+
- [ ] Election process create a bylaw for implementation details?
14+
- [ ] Charity return: Constitution needs review every 3 years

0 commit comments

Comments
 (0)