Skip to content

Commit 9c7c335

Browse files
committed
initial commit
0 parents  commit 9c7c335

File tree

6 files changed

+207
-0
lines changed

6 files changed

+207
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
12+
.codspeed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# codspeed-quickstart

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[project]
2+
name = "codspeed-quickstart"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"pytest-codspeed>=3.0.0b4",
9+
]

tests/test_count_even.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pytest
2+
3+
4+
def count_even(arr: list[int]) -> int:
5+
"""Count the number of even numbers in an array."""
6+
return sum(1 for x in arr if x % 2 == 0)
7+
8+
9+
# Your tests can also be benchmarks
10+
@pytest.mark.benchmark
11+
def test_count_even():
12+
assert count_even(range(1000)) == 500

uv.lock

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)