-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Add static typing #3315
Add static typing #3315
Conversation
8870597
to
7f0f799
Compare
4daff8d
to
dc50fdc
Compare
This took a lot of ignores but the PR is getting in a good shape. The tests need to be fixed obviously but other than that there should be not many changes required to make the CI. |
df1687f
to
826a09e
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3315 +/- ##
==========================================
+ Coverage 0.19% 64.83% +64.64%
==========================================
Files 93 113 +20
Lines 12983 15788 +2805
==========================================
+ Hits 25 10236 +10211
+ Misses 12958 5552 -7406
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
53e26a3
to
ae9df2d
Compare
This PR needs to be rebased as soon as #3363 is merged. The PR is a split-out from the previously mentioned PR. |
Rebase is in progress. However, it appears there are some errors that are in need of fixing. |
fa0b10e
to
c59afe7
Compare
Coverage summary from CodacyMerging #3315 (c2ebdef) into
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
74724f1
to
c629feb
Compare
Rebase after isort PR merge. |
4534ce6
to
0dab048
Compare
All linters are happy. The type system in Cobbler is far from being perfect because I require a lot of ignores (too many IMHO) to make them happy but as a first version this should do. We can improve this later on if needed. |
eb6a4f3
to
c2ebdef
Compare
c2ebdef
to
feb7800
Compare
LDAP tests are sadly failing. This is happening already for quite a while so I will ignore it for this PR. |
Due to numerous offenses in the type logic found it the last commits that went undetected (even by myself), this the strict pyright checks will be enabled on GitHub.
This is done to ensure consistent linting in all environments.
feb7800
to
7d3d48f
Compare
Reviewing this doesn't make much sense. We can fixup the bugs later on. |
Linked Items
Fixes #3314
Description
Introduce strict mypy checking.
Behaviour changes
Old: None
New: None
Category
This is related to a:
Tests