Skip to content

Commit 8bd026e

Browse files
authored
Merge pull request #87 from egeakman/pre-commit
2 parents 6b1a156 + ad63fe0 commit 8bd026e

24 files changed

+85
-57
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.x"
17+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/psf/black-pre-commit-mirror
3+
rev: 23.9.1
4+
hooks:
5+
- id: black
6+
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.4.0
9+
hooks:
10+
- id: check-case-conflict
11+
- id: check-merge-conflict
12+
- id: check-yaml
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
15+
16+
- repo: https://github.com/sphinx-contrib/sphinx-lint
17+
rev: v0.6.8
18+
hooks:
19+
- id: sphinx-lint

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ For example, to find out more about us and what we do, [read the docs](https://d
3636
```console
3737
sphinx-autobuild --open-browser docs docs/_build
3838
```
39-

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ help:
1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/community/community-guide.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ In this respect, we are using:
2525
questions, or just as a place where we can inspire each other.
2626

2727
## How can I help?
28-

docs/community/skills.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Where to start?
44

5-
The short answer to this question is: follow your interests :-)
5+
The short answer to this question is: follow your interests :-)
66

77
## A few general ways to help out
88

@@ -25,5 +25,3 @@ you scope the work you'd like to do, and to set expectations.
2525
## Resources for Learning
2626

2727
In this section, we gather some introductory materials for learning the aforementioned tools.
28-
29-

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
==============================
2-
Python Documentation Community
2+
Python Documentation Community
33
==============================
44

55
The following pages contain information about the documentation workgroup,

docs/monthly-meeting/2022-02.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ On the first meeting, let's use this slot for an introduction!
2222
## Roll call:
2323

2424
- [name] / affiliation / github username
25-
- [Pradyun] / :shrug: / @pradyunsg
25+
- [Pradyun] / :shrug: / @pradyunsg
2626
- [willingc] / Core Dev / willingc
2727
- [Ned] / edX, Open edX, Boston Python, Coverage.py / @nedbat
2828
- James
2929
- [Petr] / Core Dev & SC / @encukou
3030
- Mariatta / Core Dev / @mariatta
3131
- [CAM] @CAM-Gerlach PEP Editor / NASA Scientist
32-
- Paul
32+
- Paul
3333

3434
## Reports and celebrations
3535

@@ -225,7 +225,7 @@ The group's docs are incomplete. Should we fill in the blanks? Scrap some pages
225225

226226
### Documentation guidance
227227

228-
> Having a clear and opinionated style guide can enable more contributions. It will clarify expectations, making it easier to create pull requests that will get accepted. It will remove individual ownership of pages, which creates roadblocks to merging. [Ned]
228+
> Having a clear and opinionated style guide can enable more contributions. It will clarify expectations, making it easier to create pull requests that will get accepted. It will remove individual ownership of pages, which creates roadblocks to merging. [Ned]
229229
230230
The style guide could cover questions like:
231231

docs/monthly-meeting/2022-03.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Please take a second to read through it!
6363

6464
### Structuring Docs, Devguide, and PEPs
6565

66-
* Some PEPs are turning into long-lived documentations.
66+
* Some PEPs are turning into long-lived documentations.
6767
* Packaging PEPs used to be, moving to packaging.python.org
6868
* typing is moving into a similar situation.
6969
* `__future__` page in Python docs is also a list of PEP references.
@@ -123,4 +123,3 @@ Next meeting: April 4th, 22:00 UTC
123123

124124
We have a Google Calendar event for the next meeting, set to recur on the first Monday of each month.
125125
Let Mariatta know your email address and she can invite you to the event.
126-

docs/monthly-meeting/2022-04.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Devguide PR: https://github.com/python/devguide/pull/814
7070

7171
### Structuring Docs, Devguide, and PEPs
7272

73-
* Some PEPs are turning into long-lived documentations.
73+
* Some PEPs are turning into long-lived documentations.
7474
* Packaging PEPs used to be, moving to packaging.python.org
7575
* typing is moving into a similar situation.
7676
* `__future__` page in Python docs is also a list of PEP references.
@@ -148,7 +148,7 @@ The group's docs are incomplete. Should we fill in the blanks? Scrap some pages
148148

149149
### Documentation guidance
150150

151-
> Having a clear and opinionated style guide can enable more contributions. It will clarify expectations, making it easier to create pull requests that will get accepted. It will remove individual ownership of pages, which creates roadblocks to merging. [name=Ned]
151+
> Having a clear and opinionated style guide can enable more contributions. It will clarify expectations, making it easier to create pull requests that will get accepted. It will remove individual ownership of pages, which creates roadblocks to merging. [name=Ned]
152152
153153
The style guide could cover questions like:
154154

@@ -171,4 +171,3 @@ Plan is to meet First Monday of the month.
171171

172172
We have a Google Calendar event for the next meeting, set to recur on the first Monday of each month.
173173
Let Mariatta know your email address and she can invite you to the event.
174-

0 commit comments

Comments
 (0)