Skip to content

Commit

Permalink
Add files with issues on purpose for checks run
Browse files Browse the repository at this point in the history
  • Loading branch information
taesungh committed Dec 10, 2023
1 parent ceb82ff commit 89e6135
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/routers/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ async def me(username: Annotated[Union[str, None], Cookie()] = None) -> str:
async def square(value: Annotated[int, Form()]) -> int:
"""Calculate the square of the value."""
return value * value

async def bad() -> int:
"""Flake8 should complain that this line is longer than 88 characters ("black" profile)."""
return"not a good idea"
6 changes: 6 additions & 0 deletions apps/api/tests/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from routers import demo


async def test_async():
"""This test should fail."""
assert await demo.bad() == 0
13 changes: 13 additions & 0 deletions apps/site/src/app/demo/Bad.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { useEffect, useState } from "react";

function Status() {
const [v, setV] = useState(0);
useEffect(() => {
if (v>0) {
console.log("big");
}
}, []);
return <div>Status</div>;
}

export default Status;

0 comments on commit 89e6135

Please sign in to comment.