awesome-ci icon indicating copy to clipboard operation
awesome-ci copied to clipboard

Python wrong `SyntaxError: invalid syntax`

Open Olegt0rr opened this issue 4 years ago • 1 comments

Something wrong with your python syntax checker:

Type hints

File "./yt.py", line 15
  _tracker: Optional[YaTracker] = None
          ^

async

File "./tests/test_game.py", line 70
  async def game_on_registration(monkeypatch, one_group):
      ^

single quotes?

File "./antiflood.py", line 15
  logger = logging.getLogger(f'mafia.{__name__}')
                                               ^

Olegt0rr avatar Nov 02 '20 14:11 Olegt0rr

@Olegt0rr For Python I'd suggest the following instead:

  • https://github.com/cytopia/docker-bandit
  • https://github.com/cytopia/docker-black
  • https://github.com/cytopia/docker-mypy
  • https://github.com/cytopia/docker-pycodestyle
  • https://github.com/cytopia/docker-pydocstyle
  • https://github.com/cytopia/docker-pylint

cytopia avatar May 28 '21 18:05 cytopia