Yuri-SVB / Great_Wall

Protocol and application for providing Kerckhoffian, 0-trust, deviceless coercion-resistance in self-custody.
MIT License
24 stars 14 forks source link

Add minimal setup for linting Python code #75

Closed fredericomba closed 7 months ago

fredericomba commented 7 months ago

This pull requests add the minimum setup for automatically checking if the code is violating some style. Unfortunately, it seems that the Python linters out there do not have a rule for checking if this code style is being used:

def example(chosen_input: int):
  if chosen_input: # wrong, implicit check for non-zero integer
     pass

I've checked the linting rules provided by Ruff, the fastest Python linter out there, and it seems to not have support for this.