Skip to content

Commit 7ef350e

Browse files
committed
apply pre-commit hooks
1 parent 372a087 commit 7ef350e

File tree

33 files changed

+266
-196
lines changed

33 files changed

+266
-196
lines changed

.github/workflows/main.yaml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
name: main
32

43
on:
54
push:
6-
branches: [ main ]
5+
branches: [main]
76
pull_request:
8-
branches: [ main ]
7+
branches: [main]
98

109
jobs:
1110
check-branch:
@@ -36,36 +35,36 @@ jobs:
3635
run:
3736
shell: bash -l {0}
3837
steps:
39-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v3
4039

41-
- uses: conda-incubator/setup-miniconda@v3
42-
with:
43-
miniconda-version: "latest"
44-
environment-file: conda/dev.yaml
45-
channels: conda-forge,nodefaults
46-
activate-environment: osl-web
47-
auto-update-conda: true
48-
conda-solver: libmamba
40+
- uses: conda-incubator/setup-miniconda@v3
41+
with:
42+
miniconda-version: "latest"
43+
environment-file: conda/dev.yaml
44+
channels: conda-forge,nodefaults
45+
activate-environment: osl-web
46+
auto-update-conda: true
47+
conda-solver: libmamba
4948

50-
- name: Install dependencies
51-
run: |
52-
poetry check
53-
poetry install
49+
- name: Install dependencies
50+
run: |
51+
poetry check
52+
poetry install
5453
55-
- name: Linter
56-
run: |
57-
pre-commit install
58-
pre-commit run --all-file
54+
- name: Linter
55+
run: |
56+
pre-commit install
57+
pre-commit run --all-file
5958
60-
- name: Build the book
61-
run: |
62-
makim pages.build
63-
echo "opensciencelabs.org" > build/CNAME
59+
- name: Build the book
60+
run: |
61+
makim pages.build
62+
echo "opensciencelabs.org" > build/CNAME
6463
65-
# Push the book's HTML to github-pages
66-
- name: GitHub Pages action
67-
uses: peaceiris/[email protected]
68-
if: ${{ github.event_name == 'push' }}
69-
with:
70-
github_token: ${{ secrets.GITHUB_TOKEN }}
71-
publish_dir: ./build
64+
# Push the book's HTML to github-pages
65+
- name: GitHub Pages action
66+
uses: peaceiris/[email protected]
67+
if: ${{ github.event_name == 'push' }}
68+
with:
69+
github_token: ${{ secrets.GITHUB_TOKEN }}
70+
publish_dir: ./build

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ repos:
55
rev: v4.6.0
66
hooks:
77
- id: trailing-whitespace
8+
exclude: "pages/blog"
89
- id: end-of-file-fixer
10+
exclude: "pages/blog"
911
- id: check-json
1012
- id: check-toml
1113
- id: check-xml
1214
- id: check-builtin-literals
1315
- id: check-case-conflict
1416
- id: check-docstring-first
1517
- id: detect-private-key
18+
exclude: "theme"
1619

1720
- repo: https://github.com/pre-commit/mirrors-prettier
1821
rev: "v3.0.2"
1922
hooks:
2023
- id: prettier
24+
exclude: "pages/blog|theme"

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/changelog.md

.prettierrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
overrides:
2+
- files: "*.md"
3+
options:
4+
parser: remark
5+
proseWrap: always
6+
printWidth: 80

CODE_OF_CONDUCT.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
66
community a harassment-free experience for everyone, regardless of age, body
77
size, visible or invisible disability, ethnicity, sex characteristics, gender
88
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, religion, or sexual identity
10-
and orientation.
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
1111

1212
We pledge to act and interact in ways that contribute to an open, welcoming,
1313
diverse, inclusive, and healthy community.
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
26-
overall community
25+
- Focusing on what is best not just for us as individuals, but for the overall
26+
community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
31-
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
35-
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
30+
- The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -60,8 +60,8 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
64-
All complaints will be reviewed and investigated promptly and fairly.
63+
[email protected]. All complaints will be reviewed and investigated
64+
promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the
6767
reporter of any incident.
@@ -82,15 +82,15 @@ behavior was inappropriate. A public apology may be requested.
8282

8383
### 2. Warning
8484

85-
**Community Impact**: A violation through a single incident or series
86-
of actions.
85+
**Community Impact**: A violation through a single incident or series of
86+
actions.
8787

8888
**Consequence**: A warning with consequences for continued behavior. No
8989
interaction with the people involved, including unsolicited interaction with
9090
those enforcing the Code of Conduct, for a specified period of time. This
9191
includes avoiding interactions in community spaces as well as external channels
92-
like social media. Violating these terms may lead to a temporary or
93-
permanent ban.
92+
like social media. Violating these terms may lead to a temporary or permanent
93+
ban.
9494

9595
### 3. Temporary Ban
9696

@@ -106,20 +106,20 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112-
**Consequence**: A permanent ban from any sort of public interaction within
113-
the community.
112+
**Consequence**: A permanent ban from any sort of public interaction within the
113+
community.
114114

115115
## Attribution
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118118
version 2.0, available at
119119
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120120

121-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122-
enforcement ladder](https://github.com/mozilla/diversity).
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
123123

124124
[homepage]: https://www.contributor-covenant.org
125125

mkdocs.yml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ site_dir: build
66

77
theme:
88
name: null
9-
custom_dir: 'theme/'
9+
custom_dir: "theme/"
1010
features:
1111
- content.code.copy
1212
palette:
@@ -23,63 +23,63 @@ extra_javascript:
2323

2424
nav:
2525
# - Home: 'index.md'
26-
- Blog: 'blog/index.md'
26+
- Blog: "blog/index.md"
2727
- Affiliations:
28-
- index: affiliations/index.md
28+
- index: affiliations/index.md
2929
# - Member Affiliation: 'affiliations/membership/index.md'
3030
# - OpenHub: 'affiliations/open-hub/index.md'
3131
# - Programs:
32-
# Mentors: 'projects/mentoring/mentors.md'
33-
# - Activities: about/archives/index.md
34-
# note> faq is out-of-date
35-
# - FAQ: faq/index.md
32+
# Mentors: 'projects/mentoring/mentors.md'
33+
# - Activities: about/archives/index.md
34+
# note> faq is out-of-date
35+
# - FAQ: faq/index.md
3636
- Projects:
37-
- index: 'projects/index.md'
38-
- Incubator: 'projects/incubator/index.md'
39-
- Affiliated:
40-
- index: 'projects/affiliated/index.md'
41-
- Affiliated Projects: 'projects/affiliated/projects.md'
37+
- index: "projects/index.md"
38+
- Incubator: "projects/incubator/index.md"
39+
- Affiliated:
40+
- index: "projects/affiliated/index.md"
41+
- Affiliated Projects: "projects/affiliated/projects.md"
4242
# - Mentoring: 'projects/mentoring/index.md'
4343
# note: let's keep these projects hidden for now
4444
# - Packaging Support: 'projects/packaging-support/index.md'
4545
# - Virtual-Labs: 'projects/virtual-labs/index.md'
4646
- Careers:
47-
- index: careers/index.md
48-
- Internship:
49-
- index: 'careers/internship/index.md'
50-
- Interns Guide: 'careers/internship/guides/interns/index.md'
51-
- Mentors Guide: 'careers/internship/guides/mentors/index.md'
52-
# - "Cycle 2024-02": 'careers/internship/cycles/2024-02.md'
53-
# - "Cycle 2024-01 (CLOSED)": 'careers/internship/cycles/2024-01.md'
54-
# - "Cycle 2023-01 (CLOSED)": 'careers/internship/cycles/2023-01.md'
55-
- "TEMPLATE: Projects Ideas": 'careers/internship/templates/projects-ideas.md'
56-
- "TEMPLATE: Intern Project Proposal": 'careers/internship/templates/intern-proposal.md'
57-
- GSoC:
58-
- index: 'careers/gsoc/index.md'
59-
- Contributor Guide: 'careers/gsoc/guides/contributor/index.md'
60-
- "TEMPLATE: Contributor Project Proposal": 'careers/gsoc/templates/contributor-proposal.md'
47+
- index: careers/index.md
48+
- Internship:
49+
- index: "careers/internship/index.md"
50+
- Interns Guide: "careers/internship/guides/interns/index.md"
51+
- Mentors Guide: "careers/internship/guides/mentors/index.md"
52+
# - "Cycle 2024-02": 'careers/internship/cycles/2024-02.md'
53+
# - "Cycle 2024-01 (CLOSED)": 'careers/internship/cycles/2024-01.md'
54+
# - "Cycle 2023-01 (CLOSED)": 'careers/internship/cycles/2023-01.md'
55+
- "TEMPLATE: Projects Ideas": "careers/internship/templates/projects-ideas.md"
56+
- "TEMPLATE: Intern Project Proposal": "careers/internship/templates/intern-proposal.md"
57+
- GSoC:
58+
- index: "careers/gsoc/index.md"
59+
- Contributor Guide: "careers/gsoc/guides/contributor/index.md"
60+
- "TEMPLATE: Contributor Project Proposal": "careers/gsoc/templates/contributor-proposal.md"
6161
- Partnership:
62-
- index: 'partnership/index.md'
63-
- Partners: 'partnership/partners/index.md'
62+
- index: "partnership/index.md"
63+
- Partners: "partnership/partners/index.md"
6464
- Events:
65-
- index: events/index.md
66-
- "OpenVerse'24": events/openverse24/index.md
65+
- index: events/index.md
66+
- "OpenVerse'24": events/openverse24/index.md
6767
- Guidelines:
68-
- index: guidelines/index.md
69-
- Articles: guidelines/articles/index.md
70-
- DEI: guidelines/dei/index.md
71-
# - DevOps/Discord: guidelines/devops/discord.md
72-
# - Fund Raiser: guidelines/fund-raiser/index.md
73-
- Mentoring: guidelines/mentoring/index.md
68+
- index: guidelines/index.md
69+
- Articles: guidelines/articles/index.md
70+
- DEI: guidelines/dei/index.md
71+
# - DevOps/Discord: guidelines/devops/discord.md
72+
# - Fund Raiser: guidelines/fund-raiser/index.md
73+
- Mentoring: guidelines/mentoring/index.md
7474
- About:
75-
- index: 'about/index.md'
76-
- About OSL: 'about/index.md'
77-
- Our Formula: 'about/formula/index.md'
78-
- Team: about/team/index.md
79-
- Roadmap: about/roadmap/index.md
80-
- Governance: about/governance/index.md
81-
- CoC: about/coc/index.md
82-
- Donate: 'donate/index.md'
75+
- index: "about/index.md"
76+
- About OSL: "about/index.md"
77+
- Our Formula: "about/formula/index.md"
78+
- Team: about/team/index.md
79+
- Roadmap: about/roadmap/index.md
80+
- Governance: about/governance/index.md
81+
- CoC: about/coc/index.md
82+
- Donate: "donate/index.md"
8383

8484
markdown_extensions:
8585
- toc:
@@ -101,7 +101,7 @@ plugins:
101101
tags: {}
102102

103103
- rss:
104-
abstract_chars_count: 160 # -1 for full content
104+
abstract_chars_count: 160 # -1 for full content
105105
abstract_delimiter: <!-- more -->
106106
categories:
107107
- tags

pages/about/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ We need help in areas, such as:
4646
- Mentoring
4747
- Project Managements
4848

49-
Join our community on [discord](/discord). Learn more
50-
and contribute on [GitHub](https://github.com/opensciencelabs).
49+
Join our community on [discord](/discord). Learn more and contribute on
50+
[GitHub](https://github.com/opensciencelabs).
5151

5252
## Roadmap
5353

0 commit comments

Comments
 (0)