Skip to content
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

feat[tool]: add -Werror and -Wnone options #4447

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

which promote warnings to errors and ignore them, respectively.

also some small refactoring for warning handling to simplify the implementation (allow us to use warnings.simplefilter).

What I did

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

which promote warnings to errors and ignore them, respectively.

also some small refactoring for warning handling to simplify the
implementation (allow us to use `warnings.simplefilter`).
@charles-cooper charles-cooper changed the title add -Werror and -Wnone options feat[tool]: add -Werror and -Wnone options Jan 12, 2025
@charles-cooper charles-cooper changed the title feat[tool]: add -Werror and -Wnone options feat[tool]: add -Werror and -Wnone options Jan 12, 2025
@@ -11,7 +11,7 @@
import warnings
from typing import Generic, List, TypeVar, Union

from vyper.exceptions import CompilerPanic, DecimalOverrideException, VyperException
from vyper.exceptions import CompilerPanic, DecimalOverrideException

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
vyper.exceptions
begins an import cycle.
Copy link

codecov bot commented Jan 12, 2025

Codecov Report

Attention: Patch coverage is 61.70213% with 18 lines in your changes missing coverage. Please review.

Project coverage is 57.91%. Comparing base (db8dcc7) to head (3728f5b).

Files with missing lines Patch % Lines
vyper/cli/vyper_compile.py 11.11% 8 Missing ⚠️
vyper/codegen/expr.py 50.00% 2 Missing ⚠️
vyper/warnings.py 84.61% 1 Missing and 1 partial ⚠️
vyper/ast/nodes.py 50.00% 1 Missing ⚠️
vyper/ast/parse.py 75.00% 1 Missing ⚠️
vyper/cli/vyper_json.py 50.00% 1 Missing ⚠️
vyper/compiler/output.py 66.66% 1 Missing ⚠️
vyper/compiler/phases.py 66.66% 1 Missing ⚠️
vyper/semantics/types/subscriptable.py 50.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (db8dcc7) and HEAD (3728f5b). Click for more details.

HEAD has 21 uploads less than BASE
Flag BASE (db8dcc7) HEAD (3728f5b)
141 120
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4447       +/-   ##
===========================================
- Coverage   92.01%   57.91%   -34.10%     
===========================================
  Files         119      119               
  Lines       16692    16708       +16     
  Branches     2805     2806        +1     
===========================================
- Hits        15359     9677     -5682     
- Misses        915     6352     +5437     
- Partials      418      679      +261     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant