Skip to content

Commit

Permalink
add metadata, fix c coverage in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 16, 2024
1 parent 706bd12 commit 4a3e639
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ c/*/*.c linguist-language=c
c/*/*.h linguist-language=c

cplusplus/*.cpp linguist-language=c++
cplusplus/*.h linguist-language=c++
cplusplus/*.hpp linguist-language=c++
cplusplus/*/*.cpp linguist-language=c++
cplusplus/*/*.h linguist-language=c++
cplusplus/*/*.hpp linguist-language=c++
11 changes: 9 additions & 2 deletions c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ PROXY_ARG=
endif
endif

COV?=false
ifneq ($(COV),false)
pytest_args= -vl --benchmark-sort=fullname --benchmark-group-by=fullfunc --benchmark-verbose --cov
else
pytest_args= -vl --benchmark-sort=fullname --benchmark-group-by=fullfunc --benchmark-verbose
endif

.PHONY: help
help:
@echo " $(BLUE)test$(NC) run through all tests in sequence. Utilizes the Python test runner infrastructure"
Expand All @@ -25,11 +32,11 @@ help:

.PHONY: test_%
test_%: ../LICENSE dependencies
@$(PY) -m pytest -dvl -n$* test_euler.py --cov
@$(PY) -m pytest $(pytest_args) -d -n$* test_euler.py

.PHONY: test
test: ../LICENSE dependencies
@$(PY) -m pytest -vl --benchmark-sort=fullname --benchmark-group-by=fullfunc --benchmark-verbose test_euler.py --cov
@$(PY) -m pytest $(pytest_args) test_euler.py

Unity/src/unity.c:
@git submodule init
Expand Down
8 changes: 8 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
[package]
authors = ["Olivia Appleton"]
name = "rust"
description = "Project Euler solutions in Rust"
documentation = "https://euler.oliviaappleton.com"
homepage = "https://euler.oliviaappleton.com"
repository = "https://github.com/LivInTheLookingGlass/Euler"
version = "0.1.0"
edition = "2021"
rust-version = "1.69"
license = "GPL-3.0"
license-file = "../LICENSE"

[dependencies]
chrono = "0.4.38"
Expand Down

0 comments on commit 4a3e639

Please sign in to comment.