You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Surround md headers with spacing to resolve MD022
* Resolve several markdown warnings in README.md
* line length MD013
* lists surrounded by blank lines MD032
* bare URL MD034
* Resolve curl long line MD013 in README.md
* Add step to Codespace method in README.md
* Resolve markdown line length MD013
* Add newline to output to appease markdownlint MD047
* Resolve more long lines in README.md
* Resolve linting issues in CONTRIBUTING.md
* headers surrounded by blank lines MD022
* long lines MD013
* changing long lines manifested MD032
* changed unordered to ordered list in Dev section MD007
* Remove inline HTML/image to lint README.md
* long line warning
* inline HTML warning
* Change "a first" to "the first" in README.md
* Resolve bare URLs - MD034
* Add Node.js packages directory to .gitignore
* Fix string format to use double quotes
* Add markdownlint-cli2 config
* Add npm (Node.js) packaging for markdownlint-cli2
* Add markdown linting Action to cicd.yml
* Update cicd.yml - test depends on mdlint
* Fix mdlint path for test files in cicd.yml
* Update goal comment in cicd.yml
* Revert "Add Node.js packages directory to .gitignore"
This reverts commit 84fc5b0.
* Revert "Add npm (Node.js) packaging for markdownlint-cli2"
This reverts commit 722977c.
* Move file globbing to .markdownlint-cli2.yaml
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+43-16Lines changed: 43 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,19 @@
4
4
5
5
A couple of quick items:
6
6
7
-
1. To avoid duplicate issues and PRs, [please search open issue and pull requests](https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests) before submitting a new one.
8
-
1. The general expectation is to [submit a GitHub issue](https://help.github.com/en/github/managing-your-work-on-github/creating-an-issue) to receive feedback before submitting a pull request (PR) with changes.
7
+
1. To avoid duplicate issues and PRs, [please search open issue and pull requests](https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests)
8
+
before submitting a new one.
9
+
10
+
1. The general expectation is to [submit a GitHub issue](https://help.github.com/en/github/managing-your-work-on-github/creating-an-issue)
11
+
to receive feedback before submitting a pull request (PR) with changes.
12
+
9
13
*_This will help ensure ideas align with the project scope._
10
-
1. Unit tests should accompany [Pull Requests (PRs)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)**whenever possible**. :point_left:
11
-
* This could mean adding additional tests to an existing unit test file or creating a new one.
14
+
15
+
1. Unit tests should accompany [Pull Requests (PRs)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)
16
+
**whenever possible**. :point_left:
17
+
18
+
* This could mean adding additional tests to an existing unit test file or
19
+
creating a new one.
12
20
13
21
## Ways to Contribute
14
22
@@ -21,23 +29,38 @@ A couple of quick items:
21
29
22
30
## Testing Framework
23
31
24
-
For minimal dependencies, the "batteries included" [Python `unittest` framework](https://docs.python.org/3/library/unittest.html) is utilized. (Other testing frameworks could be considered should additional testing features be needed.)
32
+
For minimal dependencies, the "batteries included" [Python `unittest` framework](https://docs.python.org/3/library/unittest.html)
33
+
is utilized. (Other testing frameworks could be considered should additional
34
+
testing features be needed.)
25
35
26
36
## Development Process
37
+
27
38
>
28
39
> This section consists of suggestions.
29
40
30
-
It is recommended to verify tests are successful before making any code changes. From there make your changes and run the unit tests to validate there is not code regression.
41
+
It is recommended to verify tests are successful before making any code changes.
42
+
From there make your changes and run the unit tests to validate there is not
43
+
code regression.
44
+
45
+
1.[Create a fork of this project](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo)
46
+
47
+
* If you have an existing fork of this project be sure [to synchronize it](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)!
48
+
49
+
1. From the `main` branch of your fork, [create a feature branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)
31
50
32
-
*[Create a fork of this project](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo)
33
-
* If you have an existing fork of this project be sure [to synchronize it](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork)!
34
-
* From the `main` branch of your fork, [create a feature branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository)
35
-
* Validate [test cases run successfully](#running-unit-tests) before any changes are made
36
-
* Make modifications
37
-
* Re-test with the existing unit tests against the modified codebase
38
-
* Add any additional unit tests to improve testing coverage
39
-
* Re-run the unit tests to confirm they run successfully
40
-
* When you are satisfied with the changes and it is ready for review, [submit a Pull Request (PR)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
51
+
1. Validate [test cases run successfully](#running-unit-tests) before any
52
+
changes are made
53
+
54
+
1. Make modifications
55
+
56
+
1. Re-test with the existing unit tests against the modified codebase
57
+
58
+
1. Add any additional unit tests to improve testing coverage
59
+
60
+
1. Re-run the unit tests to confirm they run successfully
61
+
62
+
1. When you are satisfied with the changes and it is ready for review,
63
+
[submit a Pull Request (PR)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
41
64
42
65
## Running Unit Tests
43
66
@@ -47,12 +70,16 @@ Choose one of the below testing commands methods that suits your needs.
47
70
> The commands below are to be run from the top level of the project.
48
71
49
72
1. Discover and run unit tests
73
+
50
74
*`python -m unittest discover`
51
75
52
76
1. Verbose version of unit test discovery
77
+
53
78
*`python -m unittest discover -v`
54
79
55
80
1. Discover unit tests in specific directory (in this case, `tests`) with verbosity
81
+
56
82
*`python -m unittest discover -s tests -v`
57
83
58
-
:bulb: For additional `unittest` command line options, refer to the [official Python unittest documentation](https://docs.python.org/3/library/unittest.html#command-line-interface).
84
+
:bulb: For additional `unittest` command line options, refer to the
1. Or run the container in a [Codespace](https://docs.github.com/en/codespaces/overview):sparkles: via the GitHub UI:
34
+
1. Or from the GitHub UI, run the container in a :sparkles:[Codespace](https://docs.github.com/en/codespaces/overview):
35
+
38
36
* From this project's main page, click **Code**, then **Codespace**.
39
-
* Choose **Create codespace on <branch_name>** to [create a codespace](https://docs.github.com/en/codespaces/developing-in-a-codespace/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository) with the default resources (currently 2 CPU, 8 GB RAM, 32 GB Storage).
* Choose **Create codespace on <branch_name>**
38
+
39
+
This [creates a codespace](https://docs.github.com/en/codespaces/developing-in-a-codespace/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository)
40
+
with the default resources (currently 2 CPU, 8 GB RAM, 32 GB Storage).
41
+
42
+
* :rocket: Run fnsort on your markdown file:
41
43
42
44
```bash
43
45
/app/fnsort.py path/to/doc.md
44
46
```
45
47
46
48
> [!IMPORTANT]
47
-
> Keep in mind there are [monthly limits measured in core hours](https://docs.github.com/en/billing/managing-billing-for-your-products/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts) and to [stop your codespace](https://docs.github.com/en/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace):stop_sign: when you're not using it to conserve your monthly core hours allowance.
49
+
> Keep in mind there are
50
+
> [monthly limits measured in core hours](https://docs.github.com/en/billing/managing-billing-for-your-products/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts)
51
+
and to
52
+
[stop your codespace](https://docs.github.com/en/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace)
53
+
:stop_sign: when you're not using it to conserve your monthly core hours
54
+
allowance.
48
55
49
56
## Command Line Arguments
57
+
50
58
### --adjacent
51
-
Adjacent inline references that are not separated by other characters become problematic (by default).
52
-
This option adds spacing between those inline references so they are properly identified during sorting.
59
+
60
+
Adjacent inline references that are not separated by other characters become
61
+
problematic (by default).
62
+
This option adds spacing between those inline references so they are properly
63
+
identified during sorting.
53
64
54
65
`fnsort.py path/to/doc.md --adjacent`
55
66
56
67
### --keepnames
68
+
57
69
Retain or keep inline reference and footnote names.
58
70
This prevents the default behavior of replacing the names with numbers.
59
71
Footnotes at the end of the markdown are **still sorted**.
60
72
61
73
`fnsort.py path/to/doc.md --keepnames`
62
74
63
75
## Contributing
64
-
For information about contributing to this project, see the [contributing guidelines](CONTRIBUTING.md).
76
+
77
+
For information about contributing to this project, see the
Wrens [^4][^7] are a family of brown birds of which there are 88 species.
5
6
6
7
## Size
7
-
Wrens are medium-small to very small birds. The Eurasian wren is among the smallest birds in its range, while the smaller species from the Americas are among the smallest passerines in that part of the world.[^1]
8
+
9
+
Wrens are medium-small to very small birds. The Eurasian wren is among the
10
+
smallest birds in its range, while the smaller species from the Americas are
11
+
among the smallest passerines in that part of the world.[^1]
8
12
9
13
## Coloration
10
-
The dominating colors of their plumage are generally drab, composed of gray, brown, black, and white, and most species show some barring, especially on the tail or wings[^1].
14
+
15
+
The dominating colors of their plumage are generally drab, composed of gray,
16
+
brown, black, and white, and most species show some barring, especially on the
17
+
tail or wings[^1].
11
18
12
19
## Diet
13
-
Wrens are primarily insectivorous, eating insects, spiders and other small invertebrates, but many species also eat vegetable matter and some eat small frogs and lizards[^4][^7].
20
+
21
+
Wrens are primarily insectivorous, eating insects, spiders and other small
22
+
invertebrates, but many species also eat vegetable matter and some eat small
Wrens [^1][^2] are a family of brown birds of which there are 88 species.
5
6
6
7
## Size
7
-
Wrens are medium-small to very small birds. The Eurasian wren is among the smallest birds in its range, while the smaller species from the Americas are among the smallest passerines in that part of the world. [^3]
8
+
9
+
Wrens are medium-small to very small birds. The Eurasian wren is among the
10
+
smallest birds in its range, while the smaller species from the Americas are
11
+
among the smallest passerines in that part of the world. [^3]
8
12
9
13
## Coloration
10
-
The dominating colors of their plumage are generally drab, composed of gray, brown, black, and white, and most species show some barring, especially on the tail or wings [^3].
14
+
15
+
The dominating colors of their plumage are generally drab, composed of gray,
16
+
brown, black, and white, and most species show some barring, especially on the
17
+
tail or wings [^3].
11
18
12
19
## Diet
13
-
Wrens are primarily insectivorous, eating insects, spiders and other small invertebrates, but many species also eat vegetable matter and some eat small frogs and lizards [^1][^2].
20
+
21
+
Wrens are primarily insectivorous, eating insects, spiders and other small
22
+
invertebrates, but many species also eat vegetable matter and some eat small
0 commit comments