Skip to content

Commit

Permalink
chore refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
blueputty01 authored Sep 17, 2024
1 parent b7ff418 commit 7de4f90
Show file tree
Hide file tree
Showing 36 changed files with 828 additions and 409 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mypy

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Mypy
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: mypy
run: |
mypy
2 changes: 2 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ All notes are imported to the cloze type. Any bold text, notated by markdown `**
fields.

By default, cloze fields will be numbered in the order they appear in the note. To manually number cloze fields, use
`{{c#::text}}`. The automatic counting will be reset to the number following the `#`.
`{{c#::text}}`. The automatic counting does not increment in this case.

## New card syntax

Expand Down Expand Up @@ -106,16 +106,11 @@ Text:
Extra:

> * Land Ordinance Act of 1785
>
* allowed federal government to sell western lands

> * pay off national debt
> * allowed federal government to sell western lands
> * pay off national debt
> * organize new lands into townships and public schools
> * Northwest Ordinance of 1787
>
* provided that when new territory reached population of 60K → could apply for statehood with no slavery allowed
> * provided that when new territory reached population of 60K → could apply for statehood with no slavery allowed
# How it works 🛠️

Expand All @@ -124,4 +119,9 @@ processed. If the file has already been processed, it will be skipped.

# Contributing 🤝

Feel free to contribute to this project by opening an issue or creating a pull request!
Feel free to contribute to this project by opening an issue or creating a pull request!

If adding a package, please run ` pip freeze > requirements.txt` to update the requirements.txt file.

Please ensure that code is typed properly with `mypy`

314 changes: 0 additions & 314 deletions main.py

This file was deleted.

3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mypy]
mypy_path = src
files = src/main.py
Loading

0 comments on commit 7de4f90

Please sign in to comment.