Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
steps:
- uses: actions/checkout@v7

- name: Lint Markdown
uses: DavidAnson/markdownlint-cli2-action@v23
with:
globs: "**/*.md"

- uses: actions/setup-python@v7
with:
python-version: "3.11"
Expand Down
8 changes: 8 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"MD013": {
"line_length": 100
},
"MD024": {
"siblings_only": true
}
}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test-driven development.

## Instructions

Roman numerals are a numeral system that was used by ancient Rome. Numbers in
Roman numerals are a numeral system that was used by ancient Rome. Numbers in
this system use letters from the Latin alphabet. Currently, it uses seven symbols:

| Symbol | Value |
Expand All @@ -38,9 +38,9 @@ In general, the values for 5, 50, and 500 are not subtracted.
The task at hand entails crafting a function `to_roman(number: int) -> str` to
convert regular Arabic numbers into Roman numerals, such as:

* 4 → IV
* 7 → VII
* 9 → IX
- 4 → IV
- 7 → VII
- 9 → IX

The lowest number you can write in Roman Numerals is number I (1). And the
largest numeral is MMMCMXCIX (3999).
Expand All @@ -51,15 +51,15 @@ In this phase, the objective is to develop a function `from_roman(number: str)
-> int` that performs the reverse conversion, transforming Roman numerals into
their corresponding Arabic digits.

## Guiding Principles
## Guiding principles

* If you don't know an existing algorithm, follow the principles of strict
- If you don't know an existing algorithm, follow the principles of strict
Test-Driven Development (TDD) to derive one.
* Reflect on whether the sequence in which you write tests influences the final
- Reflect on whether the sequence in which you write tests influences the final
design of your algorithm.
* Consider whether it's more beneficial to devise an algorithm before embarking
- Consider whether it's more beneficial to devise an algorithm before embarking
on TDD, especially if you don't already know one.
* If you do know an algorithm, evaluate if it can be implemented using strict
- If you do know an algorithm, evaluate if it can be implemented using strict
TDD principles.

## Prerequisites
Expand Down