Commit graph

36 commits

Author SHA1 Message Date
ItsDrike 53a4583f9e
Update helpers.py 2024-07-13 17:55:58 +02:00
ItsDrike 354fbd26f7
Fix various issues in tests/helpers.py 2024-07-13 13:42:52 +02:00
ItsDrike 9922734472
coverage: Disable fail_under (code-base specific)
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:38:29 +02:00
ItsDrike 72d1fe4ce2
github-workflow: don't run slotscheck (not installed) 2024-07-13 13:37:38 +02:00
ItsDrike 800c63cfc6
ruff: Enable implicit namespace pkgs in .github/scripts
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:30:11 +02:00
ItsDrike 943d2bb8c3
Use poe to run test task (taskipy was replaced) 2024-07-13 13:29:54 +02:00
ItsDrike 93f9dc3b20
ruff: Enable flake8-boolean-trap
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:26:45 +02:00
ItsDrike 49277d4ee6
gh-workflows: Bump lowest version to 3.11
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:20:54 +02:00
ItsDrike 64ba764447
Use proper extension for pre-commit config (yaml not yml)
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:20:07 +02:00
ItsDrike a8907b911c
Remove references to release poetry group
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:16:32 +02:00
ItsDrike 2c54f8b123
Fix typo in comment
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
2024-07-13 13:08:49 +02:00
ItsDrike 97f7f5da2a
Move to a much stricter pyright configuration
Some checks are pending
CI / validation (push) Waiting to run
CI / unit-tests (push) Waiting to run
CI / Produce Pull Request payload artifact (push) Waiting to run
This moves us from using the "standard" type-checking mode (which has a
lot of the diagnostic rules disabled, which meant we were almost in a
whitelist-based system, where most diagnostic rules were disabled unless
explicitly enabled) to "all" (where all diagnotic rules are enabled,
except for those explicitly disabled, moving us to a blacklist-based
system).

The current configuration here is very strict and might not fit all
code-bases, but it will work very well for new projects, as this
strictness, while slightly annoying sometimes, forces a lot better and
more correct typing to the previous set of rules.

This template still leaves the rules for reporting unknown types
disabled, as these are incredibly strict and while they can definitely
be beneficial, for most people it's too big of an annoyance for what
it's worth.
2024-07-13 13:01:45 +02:00
ItsDrike 0855c6fbb3
basedpyright: Treat warnings as errors 2024-07-13 12:59:17 +02:00
ItsDrike 824d6273a6
Switch to basedpyright
Some checks failed
CI / validation (push) Has been cancelled
CI / unit-tests (push) Has been cancelled
CI / Produce Pull Request payload artifact (push) Has been cancelled
2024-07-10 17:30:22 +02:00
ItsDrike 06cbefb631
Add codeowners 2024-06-30 23:13:21 +02:00
ItsDrike 703fd330eb
Add issue templates 2024-06-30 23:13:01 +02:00
ItsDrike bd9af98819
Add several github workflows 2024-06-30 23:11:55 +02:00
ItsDrike 8b78208f58
Add dependabot settings 2024-06-30 23:06:25 +02:00
ItsDrike aee9ecba03
Add internal src/ dir in tests/ 2024-06-30 23:03:44 +02:00
ItsDrike 7e4c0525c3
Add attribution & license-third-party files 2024-06-30 23:03:22 +02:00
ItsDrike bb920f9474
Add test helpers.py 2024-06-30 23:02:19 +02:00
ItsDrike 04ca4a486d
Enable flake-type-checking 2024-06-30 22:52:36 +02:00
ItsDrike 7c95528c6a
Add typing-extensions dependency 2024-06-30 22:52:27 +02:00
ItsDrike 80d42cd68c
Ignore TRY003 2024-06-30 22:49:13 +02:00
ItsDrike 8cb7ad48bc
Add poe commands 2024-06-30 22:42:27 +02:00
ItsDrike 5a167c358e
Add pytest & coverage settings 2024-06-30 22:35:17 +02:00
ItsDrike 4720ec7c10
Add py.typed file 2024-06-30 22:23:58 +02:00
ItsDrike 14ed761b64
Add pyright to pre-commit 2024-06-30 22:03:07 +02:00
ItsDrike 479a46777e
update crlf rant 2024-06-30 21:57:57 +02:00
ItsDrike 34f40ea1a8
Update gitignore 2024-06-30 21:56:17 +02:00
ItsDrike 5c8e707382
Add editorconfig file 2024-06-30 21:39:24 +02:00
ItsDrike 98a12bc469
Add security policy 2024-06-30 21:33:02 +02:00
ItsDrike dc6a877cbe
update dependencies 2024-06-28 16:18:48 +02:00
ItsDrike 7b6c577485
ruff: Move to blacklist, enable all plugins by default 2024-06-28 16:18:15 +02:00
ItsDrike 25c975d9e5
Remove some lint rule ignores 2024-04-25 20:01:48 +02:00
ItsDrike d66a4b9fa5
Initial commit 2024-04-25 19:46:36 +02:00