Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ jobs:
- name: Lint
run: |
make fmt
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clones is recommended for improving the relevancy of SonarQube reporting
fetch-depth: 0
- name: Test
run: |
TEST_SELECT=ALL make test
- name: Archive coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: .coverage-reports/coverage.xml
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
archive:
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ venv
**/*.mpy

# libs
lib/rv3028*
lib/adafruit*
lib/asyncio*
lib/neopixel.py
/lib/*
!/lib/requirements.txt
21 changes: 10 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ help: ## Display this help.
@$(UV) venv
@$(UV) pip install --requirement pyproject.toml

LOCAL_PYSQUARED ?= ""

.PHONY: download-libraries
download-libraries: .venv ## Download the required libraries
@echo "Downloading libraries..."
@$(UV) pip install --requirement lib/requirements.txt --target lib --no-deps --upgrade --quiet
@$(UV) pip install --requirement lib/requirements.txt --target lib --no-deps --upgrade --quiet; \

@if [ -n "$(LOCAL_PYSQUARED)" ]; then \
$(UV) pip install $(LOCAL_PYSQUARED) --target lib --no-deps --upgrade --quiet; \
else \
$(UV) pip install git+https://github.com/proveskit/pysquared --target lib --no-deps --upgrade --quiet; \
fi

@rm -rf lib/*.dist-info
@rm -rf lib/.lock

Expand All @@ -29,16 +38,6 @@ pre-commit-install: uv
fmt: pre-commit-install ## Lint and format files
$(UVX) pre-commit run --all-files

.PHONY: test
test: .venv download-libraries ## Run tests
ifeq ($(TEST_SELECT),ALL)
$(UV) run coverage run --rcfile=pyproject.toml -m pytest tests/unit
else
$(UV) run coverage run --rcfile=pyproject.toml -m pytest -m "not slow" tests/unit
endif
@$(UV) run coverage html --rcfile=pyproject.toml > /dev/null
@$(UV) run coverage xml --rcfile=pyproject.toml > /dev/null

BOARD_MOUNT_POINT ?= ""
VERSION ?= $(shell git tag --points-at HEAD --sort=-creatordate < /dev/null | head -n 1)

Expand Down
115 changes: 0 additions & 115 deletions lib/pysquared/Big_Data.py

This file was deleted.

Empty file removed lib/pysquared/__init__.py
Empty file.
195 changes: 0 additions & 195 deletions lib/pysquared/cdh.py

This file was deleted.

Loading