Conversation
Co-authored-by: piatrashkakanstantinass <74979584+piatrashkakanstantinass@users.noreply.github.com>
|
One last error left: @piatrashkakanstantinass you added this code, do you know what exception is being excepted? I'm pretty sure it's def __contains__(self, item):
try:
return (
self["MinRarity"] <= item["Rarity"] <= self["MaxRarity"]
and set(item["Tags"]) & self["Tags"]
and not set(item["Tags"]) & self["ExcludeTags"]
)
except:
return False |
I do not know😅. I checked it now and did not find any place for exceptions. |
Codecov Report
@@ Coverage Diff @@
## main #195 +/- ##
==========================================
+ Coverage 92.37% 92.52% +0.14%
==========================================
Files 14 14
Lines 1207 1204 -3
==========================================
- Hits 1115 1114 -1
+ Misses 92 90 -2
Continue to review full report at Codecov.
|
| %t - tags (in 'tag1, tag2 ...' format) | ||
|
|
||
| If you want to print '%' or '\' character - escape it: '\%', '\\'. | ||
| If you want to print '%' or '\\' character - escape it: '\\%', '\\\\'. |
There was a problem hiding this comment.
Now shown correctly when printed.
Before:
If you want to print '%' or '' character - escape it: '\%', '\'.
After:
If you want to print '%' or '\' character - escape it: '\%', '\\'.
⚠ Pull Requests not made with this template will be automatically closed 🔥
Prerequisites
Why do we need this pull request?
flake8 enforces style consistency across Python projects.
The
--selectoption in flake8 disables all other linting errors. Removing this option shows some areas of the code that could use some improvement.A better way to ignore errors is to put them in a configuration file so that running
flake8on a local machine also ignores the same errors.What GitHub issues does this fix?
None
Copy / paste of output
Please copy and paste the output of PyWhat with your new addition using an example that tests this addition below: