Dear Stuart, Dear Erich

the underlying issue -- perhaps in files in addition to

chemcanvas/atom.py
chemcanvas/fileformat_molfile.py
chemcanvas/fileformat_smiles.py
chemcanvas/reagent_label_tool.py
chemcanvas/widgets.py

I identified -- can be addressed with `ruff` to syntax check and reformat.  The
setup which in my case eventually addressed the issue and introduced r-strings
was

```pyproject.toml
[tool.ruff]
target-version = "py313"
line-length = 120
format.indent-style = "space"
format.quote-style = "double"
format.skip-magic-trailing-comma = false
lint.select = [
  "B",    # flake8-bugbear
  "E",    # pycodestyle, errors
  "F",    # pyflakes
  "I",    # isort
  "UP",   # pyupgrade
  "W605", # an invalid escape sequence (regexes)
]
lint.ignore = [
  "E501", # a line too long
  "F401", # do not report, nor remove imports which on first sight appear
unused
]
```

which is the last commit of a sequence just filed as PR upstream,
https://github.com/ksharindam/chemcanvas/pull/21.

Best regards,
Norwid

Reply via email to