Skip to content

Commit 50d7ddc

Browse files
committed
Merge branch 'master' into 8.0.x-deconflict
2 parents aa538f5 + 5a5aaa1 commit 50d7ddc

File tree

6 files changed

+82
-25
lines changed

6 files changed

+82
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,21 @@ jobs:
6969
with:
7070
python-version: '3.9'
7171

72+
- name: configure git
73+
uses: cylc/release-actions/configure-git@v1
74+
7275
- name: checkout cylc-doc
7376
uses: actions/checkout@v3
7477
with:
75-
ref: ${{ github.event.inputs.cylc-flow-tag }}
78+
ref: ${{ inputs.cylc-flow-tag }}
7679
path: docs
7780

7881
- name: install dependencies
7982
uses: cylc/cylc-doc/.github/actions/install-dependencies@master
8083

8184
- name: install cylc-doc
82-
run: pip install "${{ github.workspace }}/docs[all]"
85+
working-directory: docs
86+
run: pip install ".[all]"
8387

8488
- name: install libs to document
8589
uses: cylc/cylc-doc/.github/actions/install-libs@master
@@ -98,21 +102,18 @@ jobs:
98102
path: gh-pages
99103

100104
- name: sync static files
101-
if: ${{ github.event.inputs.set_stable == 'true' }}
105+
if: ${{ inputs.set_stable }}
106+
env:
107+
DOCS: '${{ github.workspace }}/docs'
108+
PAGE: '${{ github.workspace }}/gh-pages'
102109
run: |
103-
DOCS="${{ github.workspace }}/docs" \
104-
PAGE="${{ github.workspace }}/gh-pages" \
105-
106110
rsync -r "$DOCS/doc/" "$PAGE/"
107111
108112
- name: install gh-pages
113+
working-directory: docs
109114
run: |
110-
DOCS="${{ github.workspace }}/docs" \
111-
PAGE="${{ github.workspace }}/gh-pages" \
112-
113-
cd "$DOCS"
114115
rm -r doc
115-
ln -s "$PAGE" doc
116+
ln -s ../gh-pages doc
116117
117118
- name: build docs
118119
run: |
@@ -125,20 +126,17 @@ jobs:
125126
linkcheck \
126127
SPHINXOPTS='-Wn --keep-going' \
127128
FORCE_COLOR=true \
128-
STABLE=${{ github.event.inputs.set_stable }} \
129-
LATEST=${{ github.event.inputs.set_latest }}
130-
131-
- name: configure git
132-
uses: cylc/release-actions/configure-git@v1
129+
STABLE=${{ inputs.set_stable }} \
130+
LATEST=${{ inputs.set_latest }}
133131
134132
- name: tidy old versions
133+
working-directory: docs
135134
run: |
136-
cd docs
137-
git rm -r $("${{ github.workspace }}/docs/bin/version" tidy) || true
135+
git rm -r $("./bin/version" tidy) || true
138136
139137
- name: push changes
138+
working-directory: gh-pages
140139
run: |
141-
cd gh-pages
142140
git add *
143-
git commit -m "add: ${{ github.event.inputs.cylc-flow-tag }}"
141+
git commit -m "add: ${{ inputs.cylc-flow-tag }}"
144142
git push origin HEAD

.github/workflows/shortlog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '.github/workflows/shortlog.yml'
1010

1111
jobs:
12-
test:
12+
shortlog:
1313
runs-on: 'ubuntu-latest'
1414
timeout-minutes: 10
1515
steps:

.github/workflows/undeploy.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,20 @@ jobs:
3636
runs-on: ubuntu-latest
3737
timeout-minutes: 10
3838
env:
39-
TAG: ${{ github.event.inputs.tag }}
39+
TAG: ${{ inputs.tag }}
4040
steps:
4141
- name: configure python
4242
uses: actions/setup-python@v4
4343
with:
4444
python-version: '3.9'
4545

46+
- name: configure git
47+
uses: cylc/release-actions/configure-git@v1
48+
4649
- name: checkout cylc-doc
4750
uses: actions/checkout@v3
51+
with:
52+
path: docs
4853

4954
- name: checkout gh-pages
5055
uses: actions/checkout@v3
@@ -67,17 +72,21 @@ jobs:
6772
fi
6873
done
6974
70-
- name: configure git
71-
uses: cylc/release-actions/configure-git@v1
75+
- name: install gh-pages
76+
working-directory: docs
77+
run: |
78+
rm -r doc
79+
ln -s ../gh-pages doc
7280
7381
- name: remove version
7482
working-directory: gh-pages
7583
run: |
7684
git rm -r "$TAG"
7785
7886
- name: update version file
87+
working-directory: docs
7988
run: |
80-
bin/version write
89+
bin/version write > doc/versions.json
8190
8291
- name: push changes
8392
working-directory: gh-pages

src/dictionaries/proper_nouns

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ Posix
3030
Protobuf
3131
Pympler
3232
Pyro
33+
pyproject
3334
rsync
3435
sge
3536
slurm
3637
Slurm
3738
sqlite
3839
svn
40+
toml
3941
Trac
4042
Tui
4143
Vuex

src/dictionaries/words

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ retrigger
134134
retriggered
135135
retriggering
136136
roadmap
137+
ruleset
138+
rulesets
137139
runahead
138140
runnable
139141
runtime

src/user-guide/writing-workflows/configuration.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,49 @@ show an inlined copy of the workflow with correct line numbers.
149149

150150
.. automodule:: cylc.flow.scripts.lint
151151

152+
Configure ``cylc lint`` at project level
153+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154+
155+
You can configure ``cylc lint`` for each workflow using a
156+
``pyproject.toml`` file.
157+
158+
To define settings for ``cylc lint`` use a ``[cylc-lint]`` section.
159+
Within the ``[cylc-lint]`` section you may define the following:
160+
161+
rulesets
162+
A list of rulesets to use. If you run cylc lint without setting rulesets
163+
on the command line this value will override
164+
the default (``['728', 'style']``).
165+
166+
Allowed Values: '728', 'style'
167+
168+
ignore
169+
Individual rules to ignore: A list of rule codes, such as ``S007``.
170+
171+
exclude
172+
A list of files or glob patterns for files which will not be checked.
173+
174+
max-line-length
175+
Set longest line length to permit in Cylc Configs for this project.
176+
If unset, line length is not checked.
177+
178+
179+
An example ``pyproject.toml`` might look like this:
180+
181+
.. code-block:: toml
182+
183+
[cylc-lint]
184+
# Enforce a line limit of 99 chars
185+
max-line-length = 99
186+
187+
# Ignore style [S] rule 007 (It's good practice comment with a reason)
188+
ignore = ['S007'] # Family names start with lowercase in this workflow
189+
190+
# Don't check files matching these globs
191+
exclude = ['history/*.old.cylc', 'someother.cylc']
192+
193+
# By default check for style
194+
rulesets = ['style']
195+
196+
[some-other-section]
197+
# Cylc lint won't pay any attention to this.

0 commit comments

Comments
 (0)