-
Notifications
You must be signed in to change notification settings - Fork 14
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
Updated configs to use list format for 'inherits_from' #427
Conversation
I got the unit tests to pass with the following diff. diff --git a/statick_tool/config.py b/statick_tool/config.py
index 2f207fd..a6fd41f 100644
--- a/statick_tool/config.py
+++ b/statick_tool/config.py
@@ -135,11 +135,12 @@ class Config:
)
configs = ""
for inherited_level in self.config["levels"][level]["inherits_from"]:
- config = self.get_plugin_config(
- plugin_type, plugin, inherited_level, key, default
- )
- if config is not None:
- configs += config
+ if level is not inherited_level:
+ config = self.get_plugin_config(
+ plugin_type, plugin, inherited_level, key, default
+ )
+ if config is not None:
+ configs += config
if configs:
return configs
return default |
Looks like you need to merge in main again. Main now has your fix to the mypy issue causing workflow issues in this PR. |
Codecov Report
@@ Coverage Diff @@
## main #427 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 57 57
Lines 3286 3284 -2
=========================================
- Hits 3286 3284 -2
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@denewiler, your diff caused a drop in coverage...I'll take a look at that later, but feel free to push another diff if you feel you can do it quicker, being more familiar with the testing. |
…move support for deprecated inherits from flags in string format.
Unfortunately every time I revisit this there's something new broken....any insight with the tox failure? I ran the the Statick check on the main branch too, and get the same thing, so it's probably unrelated to this PR. |
The tox errors are new for the main branch. I'll take a look. Note that there is an open PR that fixes coverage for the |
Found the culprit at tholo/pytest-flake8#87. The upgrade to flake8 v5 broke pytest-flake8 to give the error we are seeing. AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder' I have a one-line fix working in Windows, will PR soon if Actions pass. |
Thanks, hadn't seen that PR. Waiting on your 1-line fix to pass the Action for both that PR and then eventually this one. |
Thanks for the help, I think this is finally ready. |
No description provided.