From 9f9b61538631e6a3f6255627b3e705fd7d7ec836 Mon Sep 17 00:00:00 2001 From: saipraneeth <2506664+msaipraneeth@users.noreply.github.com> Date: Tue, 9 Dec 2025 20:48:51 +0000 Subject: [PATCH] Allow asserts and unused args in test files --- CHANGELOG.md | 6 ++++++ src/pyproject.toml.jinja | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ad9521..94c6b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/) +## [Unreleased] + +### Changed + +- ruff: allow asserts and unused args in test files + ## [8.2.0] 2025-11-27 ### Fixed diff --git a/src/pyproject.toml.jinja b/src/pyproject.toml.jinja index ac2e982..0c64ce3 100644 --- a/src/pyproject.toml.jinja +++ b/src/pyproject.toml.jinja @@ -92,6 +92,11 @@ ignore = [ "G004", # Logging statement uses f-string "ISC001", # single-line-implicit-string-concatenation "PD", # opinionated linting for pandas code - "S101", # use of assert detected "TRY003", # Avoid specifying long messages outside the exception class ] + +[tool.ruff.lint.per-file-ignores] +"tests/**/*.py" = [ + "S101", # asserts allowed in tests + "ARG", # unused function args (pytest fixtures) +] \ No newline at end of file