Skip to content

Commit cbfffc0

Browse files
committed
chore: merge branch
2 parents 7add61d + 042c944 commit cbfffc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+182780
-653
lines changed

.editorconfig

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Summary: EditorConfig file for this project. -*- conf -*-
2+
#
3+
# For more information, see https://EditorConfig.org
4+
#
5+
# Copyright 2024 California Institute of Technology.
6+
# License: Modified BSD 3-clause – see file "LICENSE" in the project website.
7+
# Website: https://github.com/caltechlibrary/iga
8+
9+
root = true
10+
11+
[*]
12+
charset = utf-8
13+
end_of_line = lf
14+
indent_size = 4
15+
indent_style = space
16+
insert_final_newline = true
17+
max_line_length = 90
18+
tab_width = 4
19+
trim_trailing_whitespace = true
20+
21+
[*.cfg]
22+
indent_size = 2
23+
24+
[*.json]
25+
indent_size = 2
26+
27+
[*.{yml, yaml}]
28+
indent_size = 2
29+
30+
# Shell scripts on Windows.
31+
[*.{cmd, bat}]
32+
end_of_line = crlf
33+
34+
[Makefile, makefile]
35+
indent_size = 4
36+
indent_style = tab
37+
tab_width = 8
38+
39+
[.applescript]
40+
indent_size = 4
41+
indent_style = tab
42+
tab_width = 4

.flake8

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# -*- conf-toml -*-
2-
# @file .flake8
3-
# @brief Project-wide Flake8 configuration
4-
# @created 2022-12-08
5-
# @license Please see the file named LICENSE in the project directory
6-
# @website https://github.com/caltechlibrary/iga
1+
# Summary: project-wide Flake8 configuration. -*- conf-toml -*-
72
#
83
# Note: as of version 4.0, flake8 does NOT read global configuration files
9-
# from ~/.flake8 or ~/.config/flake8. If you had such a config file of your
4+
# from ~/.flake8 or ~/.config/flake8. If you had such a config file of your
105
# own, and you're looking at this config file and wondering how the two will
11-
# interaction, the answer is simple: they won't. Only this file matters.
6+
# interaction, the answer is simple: they won't. Only this file matters.
127
#
138
# The following flake8 plugins are assumed to be installed:
149
# flake8-bugbear
@@ -18,6 +13,10 @@
1813
# flake8-implicit-str-concat
1914
# flake8-pie
2015
# flake8_simplify
16+
#
17+
# Copyright 2024 California Institute of Technology.
18+
# License: Modified BSD 3-clause – see file "LICENSE" in the project website.
19+
# Website: https://github.com/caltechlibrary/iga
2120

2221
[flake8]
2322
ignore =
@@ -46,6 +45,7 @@ per-file-ignores =
4645
# keyword/parameter equals"). It would be better to disable E251 just for
4746
# that block in the file, BUT flake8 only recognizes per-line annotations,
4847
# so there's no way to tell it to ignore a rule only for a block of code.
48+
iga/__init__.py: E221
4949
iga/__main__.py: E251
5050
tests/*: F403, W391, E202, E251
51-
vendor:*: A003, E301, E302, E305, W291, W293, W605, F821
51+
vendor:*: A003, E301, E302, E305, W291, W293, W605, F821

.gitattributes

Lines changed: 67 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,71 @@
1-
# -*- mode: sh; -*-
1+
# Summary: repository-specific file attributes assignments for git.
2+
#
3+
# Copyright 2024 California Institute of Technology.
4+
# License: Modified BSD 3-clause – see file "LICENSE" in the project website.
5+
# Website: https://github.com/caltechlibrary/iga
26

3-
# Set the default behavior, in case people don't have core.autocrlf set.
4-
# .............................................................................
7+
# Set default interpretation of line endings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58

69
* text=auto
710

8-
# Specify what's text and should be normalized.
9-
# .............................................................................
10-
11-
*.py text
12-
*.in text
13-
*.rst text
14-
*.cfg text
15-
*.ini text
16-
*.yml text
17-
*.json text
18-
*.bat text
19-
*.sh text
20-
LICENSE text
21-
CONTRIBUTING text
22-
23-
# Denote all files that are truly binary and should not be modified.
24-
# .............................................................................
25-
26-
*.png binary
27-
*.jpg binary
28-
*.xls binary
29-
*.doc binary
30-
31-
# This next one is because in other projects, we've had problems with git
32-
# getting confused about line endings when people using Windows and Mac edit
33-
# the same files.
34-
# .............................................................................
35-
36-
*.csv binary diff=csv
11+
# Interpretation of common text files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12+
13+
*.bat text eol=crlf
14+
*.cff text
15+
*.cfg text
16+
*.css text diff=css
17+
*.env text
18+
*.html text diff=html
19+
*.ini text
20+
*.ipynb text eol=lf
21+
*.js text
22+
*.json text
23+
*.md text diff=markdown
24+
*.py text diff=python
25+
*.rst text
26+
*.sh text
27+
*.sql text
28+
*.svg text
29+
*.toml text
30+
*.tex text diff=tex
31+
*.txt text
32+
*.yaml text merge=yaml
33+
*.yml text merge=yaml
34+
35+
# RC files like .babelrc, .eslintrc, etc.
36+
*.*rc text
37+
38+
LICENSE text
39+
Makefile text
40+
41+
*.gitattributes text
42+
*.*ignore text
43+
.gitconfig text
44+
45+
# Interpretation of common binary files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+
47+
*.bz binary
48+
*.DOC binary
49+
*.doc binary
50+
*.DOCX binary
51+
*.docx binary
52+
*.DOT binary
53+
*.dot binary
54+
*.gz binary
55+
*.jpeg binary
56+
*.jpg binary
57+
*.PDF binary
58+
*.pdf binary
59+
*.RTF binary
60+
*.rtf binary
61+
*.tar binary
62+
*.tgz binary
63+
*.tif binary
64+
*.tiff binary
65+
*.xls binary
66+
*.zip binary
67+
68+
# Special case for CSV files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
# This avoids compatibility issues between Windows and Mac.
70+
71+
*.csv text eol=crlf

.github/workflows/archive-github-pages.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# GitHub Actions workflow for Baler (BAd Link reportER) version 2.0.4.
2+
# This is available as the file "sample-workflow.yml" from the source
3+
# code repository for Baler: https://github.com/caltechlibrary/baler
4+
5+
name: Bad Link Reporter
6+
7+
# Configure this section ─────────────────────────────────────────────
8+
9+
env:
10+
# Files to check. (Put patterns on separate lines, no leading dash.)
11+
files: |
12+
**/*.md
13+
14+
# Label assigned to issues created by this workflow:
15+
labels: bug
16+
17+
# Number of previous issues to check for duplicate reports.
18+
lookback: 10
19+
20+
# Time (sec) to wait on an unresponsive URL before trying once more.
21+
timeout: 15
22+
23+
# Optional file containing a list of URLs to ignore, one per line:
24+
ignore: .github/workflows/ignored-urls.txt
25+
26+
on:
27+
schedule: # Cron syntax is: "min hr day-of-month month day-of-week"
28+
- cron: 00 04 * * 1
29+
push:
30+
paths: ['**.md']
31+
workflow_dispatch:
32+
33+
# The rest of this file should be left as-is ─────────────────────────
34+
35+
run-name: Test links in Markdown files
36+
jobs:
37+
Baler:
38+
name: Link checker and reporter
39+
runs-on: ubuntu-latest
40+
permissions:
41+
issues: write
42+
steps:
43+
- uses: caltechlibrary/baler@v2
44+
with:
45+
files: ${{github.event.inputs.files || env.files}}
46+
labels: ${{github.event.inputs.labels || env.labels}}
47+
ignore: ${{github.event.inputs.ignore || env.ignore}}
48+
timeout: ${{github.event.inputs.timeout || env.timeout}}
49+
lookback: ${{github.event.inputs.lookback || env.lookback}}

.github/workflows/build-sphinx.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/doc-builder.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Summary: GitHub Actions workflow to build IGA docs using MyST.
2+
#
3+
# This workflow file was originally based on work by GitHub user "peaceiris":
4+
# https://github.com/peaceiris/actions-gh-pages
5+
#
6+
# Copyright 2024 California Institute of Technology.
7+
# License: Modified BSD 3-clause – see file "LICENSE" in the project website.
8+
# Website: https://github.com/caltechlibrary/iga
9+
10+
name: GitHub Pages builder & deployer
11+
12+
on:
13+
push:
14+
branches: [main]
15+
paths: [docs/**]
16+
17+
jobs:
18+
deploy:
19+
name: Build and deploy docs
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
steps:
24+
- name: Check out copy of git repository.
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Python.
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.10'
31+
cache: pip
32+
33+
- name: Upgrade pip.
34+
run: |
35+
# install pip=>20.1 to use "pip cache dir"
36+
python3 -m pip install --upgrade pip
37+
38+
- name: Install dependencies.
39+
run: |
40+
python3 -m pip install "myst-parser[linkify]"
41+
python3 -m pip install sphinx-material
42+
python3 -m pip install sphinxcontrib-mermaid
43+
44+
- name: Build Sphinx docs.
45+
run: |
46+
cd docs
47+
make html
48+
49+
- name: Deploy.
50+
uses: peaceiris/actions-gh-pages@v4
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
publish_dir: ./docs/_build/html

0 commit comments

Comments
 (0)