Skip to content

Re-add ignore and maxdepth#97

Merged
jhsoby merged 1 commit intomainfrom
ignore
Mar 10, 2026
Merged

Re-add ignore and maxdepth#97
jhsoby merged 1 commit intomainfrom
ignore

Conversation

@jhsoby
Copy link
Copy Markdown
Member

@jhsoby jhsoby commented Mar 10, 2026

Description

Re-add the checks for category ignore and maxdepth in filters.py, which were removed in 0ea4141 (presumably by accident).

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore
  • ⏩ Revert

Related Tickets & Documents

Fixes #96

Tested?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📖 own file under the docs folder
  • 🙅 no documentation needed

[optional] Are there any pre- or post-deployment tasks we need to perform?

Re-add the checks for category ignore and maxdepth in filters.py,
which were removed in 0ea4141
(presumably by accident).

This fixes #96.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug (issue #96) where the ignore and maxdepth parameters for category filters were not being read from template parameters. These checks were accidentally removed in a prior commit (0ea41414), causing the category ignore functionality to be completely non-functional. The fix re-adds the parameter parsing in CatFilter.make() and bumps the version to 1.1.2.

Changes:

  • Re-added parsing of ignore and maxdepth template parameters in CatFilter.make() so they are passed through to the CatFilter constructor.
  • Bumped the project version from 1.1.1 to 1.1.2.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ukbot/filters.py Re-adds reading of ignore (comma-separated list appended to the ignore list) and maxdepth (integer override) template parameters in CatFilter.make()
pyproject.toml Version bump from 1.1.1 to 1.1.2 to reflect the bug fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread ukbot/filters.py
Copy link
Copy Markdown
Member

@DiFronzo DiFronzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhsoby jhsoby merged commit 9d283c5 into main Mar 10, 2026
4 checks passed
@jhsoby jhsoby deleted the ignore branch March 10, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Category ignore not working

3 participants