Skip to content

Commit

Permalink
fixed up workflows, added app skeleton, made sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
jar2333 committed Mar 17, 2024
1 parent 4d4226b commit 5d3ee6c
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

# ADJUST THIS: build your documentation into docs/.
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here.
- run: pdoc -o docs/
- run: pdoc app.py -o docs/

- uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
pip install -r requirements.txt
- name: Lint with Ruff
run: |
ruff --output-format=github .
ruff check --output-format=github .
continue-on-error: true
- name: Test with pytest
run: |
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

.ruff_cache
10 changes: 10 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask

"""
The main application
"""
app = Flask(__name__)

@app.route("/")
def root():
return "hello world"
99 changes: 99 additions & 0 deletions docs/app.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./app.html"/>
</head>
</html>
46 changes: 46 additions & 0 deletions docs/search.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/sample_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def sample_test():
assert True

0 comments on commit 5d3ee6c

Please sign in to comment.