Skip to content

Implement config unit testing #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 147 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
2b714b9
rename generate url
MattyTheHacker May 30, 2025
5f2761e
Implement config tests
MattyTheHacker May 30, 2025
41320a1
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 30, 2025
9f34872
fix ruff
MattyTheHacker May 30, 2025
6028aa5
Fix testing dependencies
MattyTheHacker May 30, 2025
e498a68
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 30, 2025
eb2f0d1
Fix workflow
MattyTheHacker May 30, 2025
82ab336
fix
MattyTheHacker May 30, 2025
aefb1ae
fix mypy error
MattyTheHacker May 30, 2025
3948a48
Refactor utils
MattyTheHacker May 30, 2025
2a348b9
fuc
MattyTheHacker May 30, 2025
d0b54e5
Fix ruff error
MattyTheHacker May 30, 2025
6e7938d
Minor bot token handling fix
MattyTheHacker May 30, 2025
9d16a10
Fix variable name
MattyTheHacker May 30, 2025
782bcfd
Fix ruff errors
MattyTheHacker May 30, 2025
cc7b68b
Implement stripping discord guild id
MattyTheHacker May 30, 2025
d21ef38
Fix some stuff
MattyTheHacker May 30, 2025
b7376d2
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 30, 2025
60a26a8
minor fixes
MattyTheHacker May 30, 2025
e9e2d2e
improve perks url
MattyTheHacker May 30, 2025
6e04b2e
add url check
MattyTheHacker May 30, 2025
6b0839f
Fix easter egg bits
MattyTheHacker May 30, 2025
dde42e8
refactor intro reminders
MattyTheHacker May 30, 2025
9456afa
Fix bad error codes
MattyTheHacker May 30, 2025
3a2f56f
and more rules
MattyTheHacker May 30, 2025
c9ff1b3
more fixes
MattyTheHacker May 30, 2025
c265d61
Fix mypy
MattyTheHacker May 30, 2025
c3c16a0
Improve stats roles
MattyTheHacker May 30, 2025
3a12efd
refactor discord log channel test
MattyTheHacker May 31, 2025
3c67d24
Fix more tests
MattyTheHacker May 31, 2025
254c5f8
ignore type checking blocks
MattyTheHacker May 31, 2025
22706a9
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 31, 2025
8b3c74d
it all works now
MattyTheHacker May 31, 2025
13cf371
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 31, 2025
f4da08a
Implement custom discord invite url test
MattyTheHacker May 31, 2025
78bb61e
fix ruff
MattyTheHacker May 31, 2025
1e8469d
Implement org id tests
MattyTheHacker May 31, 2025
73a608e
Add tests for auto add committee
MattyTheHacker May 31, 2025
188026d
Test a thing
MattyTheHacker May 31, 2025
7df2fa0
Fix a thing
MattyTheHacker May 31, 2025
a4568d8
implement more tests
MattyTheHacker May 31, 2025
dd4cc88
Add delay initial test
MattyTheHacker May 31, 2025
036bc97
Implement role reminder delay tests
MattyTheHacker May 31, 2025
3cbc36b
more tests
MattyTheHacker May 31, 2025
32ead18
Fix some stuff
MattyTheHacker May 31, 2025
97c6c33
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 3, 2025
feea0f9
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 12, 2025
6756b4b
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 13, 2025
f9480e6
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 13, 2025
5c3b8e2
Ensure env variables are deleted
MattyTheHacker Jun 13, 2025
d03530a
Test some stuff
MattyTheHacker Jun 13, 2025
c1c407f
Fix failing tests
MattyTheHacker Jun 13, 2025
e5bbd26
fix maybe
MattyTheHacker Jun 13, 2025
ac75342
more fixes
MattyTheHacker Jun 13, 2025
c6787a3
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jun 13, 2025
5c61eff
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 14, 2025
1a6ff75
Allow committee-elect to update actions (and appear in auto-complete)…
Thatsmusic99 Jun 15, 2025
868af69
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 15, 2025
8d91a19
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 15, 2025
3d06859
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 15, 2025
b2d7aa0
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 15, 2025
725535d
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 16, 2025
d9f01f5
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 17, 2025
5534238
Fix
MattyTheHacker Jun 17, 2025
5a79b03
Fix lock file
MattyTheHacker Jun 17, 2025
e96662d
Yeet
MattyTheHacker Jun 17, 2025
1558852
Add gitpython as it should be
MattyTheHacker Jun 17, 2025
cad1f81
fix again
MattyTheHacker Jun 17, 2025
e29d37e
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jun 17, 2025
bbb567d
fix
MattyTheHacker Jun 17, 2025
bc42d98
Fix dependency groups
MattyTheHacker Jun 17, 2025
4f2b378
move gitpython
MattyTheHacker Jun 17, 2025
ce0da35
fix lock file again
MattyTheHacker Jun 17, 2025
8a076b3
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jun 17, 2025
e1847f4
Fix lock file
MattyTheHacker Jun 17, 2025
912f29a
Fix config
MattyTheHacker Jun 18, 2025
a9163ae
Minor fixes
MattyTheHacker Jun 18, 2025
95e91e9
fix
MattyTheHacker Jun 18, 2025
77972a3
fix wrong error message
MattyTheHacker Jun 18, 2025
f21930b
fix another message
MattyTheHacker Jun 18, 2025
ebd08da
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 19, 2025
2a9776b
fix lock error
MattyTheHacker Jun 19, 2025
ba81d7f
Fix mypy errors
MattyTheHacker Jun 19, 2025
35e4d01
Fix config
MattyTheHacker Jun 19, 2025
05e3fd3
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jun 19, 2025
95b93b3
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 22, 2025
7ccf418
fix ruff warning
MattyTheHacker Jun 23, 2025
e7717a4
Add tests for invalid protocols
MattyTheHacker Jun 24, 2025
48a4025
format
MattyTheHacker Jun 24, 2025
4503559
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 24, 2025
2b4ba09
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 24, 2025
3ac48bc
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 24, 2025
9e11a48
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 25, 2025
dba3325
Merge main into 515-implement-config-unit-testing
cssbhamdev Jun 30, 2025
5dd6e7a
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jun 30, 2025
38321f9
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 2, 2025
506402e
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 2, 2025
ef8e273
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 3, 2025
e3be435
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 3, 2025
9045054
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 3, 2025
3b88d93
Merge branch 'main' into 515-implement-config-unit-testing
MattyTheHacker Jul 4, 2025
f93c489
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 4, 2025
c93fc3e
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 4, 2025
697c1ba
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 4, 2025
33108e3
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 4, 2025
18b31f9
Fix tests
MattyTheHacker Jul 4, 2025
b237cc7
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jul 4, 2025
feb3bd7
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 4, 2025
110a524
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 5, 2025
3375c44
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 5, 2025
82a3fdb
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 5, 2025
438cf74
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 5, 2025
dd7273c
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 5, 2025
f6eb12a
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 6, 2025
f889524
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 7, 2025
b4f7118
Add tests
MattyTheHacker Jul 9, 2025
437cd27
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 9, 2025
3c528be
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 9, 2025
c86136b
Remove extra try catch
MattyTheHacker Jul 10, 2025
507045b
Test
MattyTheHacker Jul 10, 2025
3b3e2e7
Fix some stuff
MattyTheHacker Jul 10, 2025
27ddcd4
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jul 10, 2025
d30597a
Fix
MattyTheHacker Jul 11, 2025
b8ff2f7
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jul 11, 2025
d7a677a
Test invalid
MattyTheHacker Jul 11, 2025
0742050
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 11, 2025
ed1fbb0
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 14, 2025
1e9ad65
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 21, 2025
9fac890
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 21, 2025
4a53d66
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 22, 2025
c3cc01f
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 28, 2025
66112d3
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Jul 29, 2025
e570e94
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 1, 2025
d382e76
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 4, 2025
ac64438
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 5, 2025
93bee5e
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 5, 2025
8158f57
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 7, 2025
d168275
Fix renamed method
MattyTheHacker Aug 8, 2025
5de7646
Implement discord log testing
MattyTheHacker Aug 8, 2025
886fd12
Fix default log level
MattyTheHacker Aug 8, 2025
093db33
Add tests for membership roles
MattyTheHacker Aug 8, 2025
90b998e
Fix line length
MattyTheHacker Aug 8, 2025
5b4358e
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 9, 2025
99fd1c0
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 11, 2025
1f4250a
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 11, 2025
d2e65c1
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 12, 2025
cc9cdc6
Merge main into 515-implement-config-unit-testing
automatic-pr-updater[bot] Aug 18, 2025
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
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ main = [
"validators>=0.34",
]
pre-commit = ["pre-commit>=4.0"]
test = ["pytest-cov>=6.1", "pytest>=8.3"]
type-check = ["django-stubs[compatible-mypy]>=5.1", "mypy>=1.13", "types-beautifulsoup4>=4.12"]
test = ["pytest-cov>=6.1.1", { include-group = "test-core" }]
test-core = ["gitpython>=3.1.44", "pytest>=8.3"]
type-check = [
"django-stubs[compatible-mypy]>=5.1",
"mypy>=1.13",
"types-beautifulsoup4>=4.12",
{ include-group = "test-core" },
]

[project] # TODO: Remove [project] table once https://github.com/astral-sh/uv/issues/8582 is completed
name = "TeX-Bot-Py-V2"
Expand Down Expand Up @@ -167,7 +173,7 @@ banned-aliases = { "regex" = [
banned-from = ["abc", "re", "regex"]

[tool.ruff.lint.per-file-ignores]
"tests/**/test_*.py" = ["S101"]
"tests/**/test_*.py" = ["S101", "S311", "SLF001"]

[tool.ruff.lint.flake8-self]
extend-ignore-names = ["_base_manager", "_default_manager", "_get_wrap_line_width", "_meta"]
Expand Down Expand Up @@ -206,13 +212,11 @@ parametrize-values-type = "tuple"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true


[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]
skip_covered = true
sort = "cover"


[tool.pymarkdown]
extensions.front-matter.enabled = true
mode.strict-config = true
Expand Down
Loading
Loading