Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
- id: lint
name: lint
description: "Lint and sort"
entry: make lint
entry: make lint.local
pass_filenames: false
require_serial: true
language: system
Expand Down
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ build.portable:
--build-arg COMMIT_SHA="${sha}" \
--build-arg RELEASE_VERSION="${release_version}"

lint:
make lint.install
make lint.run

test:
COVERAGE_CORE=sysmon pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy

Expand All @@ -56,11 +52,23 @@ test.unit:
test.integration:
COVERAGE_CORE=sysmon pytest --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy

lint:
make lint.install
make lint.run

# used for CI
lint.install:
echo "Installing..."
pip install -Iv ruff

lint.local:
make lint.install.local
make lint.run

lint.install.local:
echo "Installing..."
uv add --dev ruff

# The preferred method (for now) w.r.t. fixable rules is to manually update the makefile
# with --fix and re-run 'make lint.' Since ruff is constantly adding rules this is a slight
# amount of "needed" friction imo.
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ dev-dependencies = [
"pytest-mock>=1.13.0",
"pytest-sqlalchemy>=0.2.1",
"respx>=0.20.2",
"ruff>=0.9.8",
"sqlalchemy-utils>=0.41.2",
"time-machine>=2.16.0",
# NOTE: some weird interaction between existing `vcrpy` snapshots and the way
Expand All @@ -84,4 +85,4 @@ dev-dependencies = [
[tool.uv.sources]
timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" }
test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "190bbc8a911099749928e13d5fe57f6027ca1e74" }
shared = { git = "https://github.com/codecov/shared", rev = "47fa7fd405cd4a37ab6df9f200d6b600795f2786" }
shared = { git = "https://github.com/codecov/shared", rev = "47fa7fd405cd4a37ab6df9f200d6b600795f2786" }
27 changes: 27 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.