You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add managed per-file-ignore support; ignore RUF059 in tests by default (#1463)
* Initial plan
* Add managed per-file-ignore support and ignore RUF059 in tests by default
- Add `tests_ignored` and `nontests_ignored` fields to `RuleConfig` for managed
per-file-ignores (can be removed when tool is removed)
- Add `unignore_rules_in_glob` method to `RuffTool` for removing per-file-ignores
- Update `apply_rule_config` to handle managed per-file-ignores
- Update `remove_rule_config` to handle managed per-file-ignores
- Add `RUF059` to `_get_basic_rule_config()` as a `tests_ignored` rule
- Add tests for new behavior
- Update existing test expectations
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/1a70829b-ea2b-443e-9475-5cd4a579a3b9
* Apply formatter fixes from prek
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/1a70829b-ea2b-443e-9475-5cd4a579a3b9
* Improve comment clarity in subset_related_to_tests
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/1a70829b-ea2b-443e-9475-5cd4a579a3b9
* Fix hallucinated ticket ID
* Add tests for full coverage of RuleConfig.__repr__
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/692d2eb5-b2c9-4970-8ec5-b1c5737da738
* Apply ruff formatter
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Co-authored-by: Nathan McDougall <nathan.j.mcdougall@gmail.com>
0 commit comments