Skip to content

Conversation

@haditariq
Copy link
Contributor

  • rather 1-story 1-commit than sub-atomic commits

  • commit title is meaningful => git history search

  • commit description is helpful => helps the reviewer to understand the changes

  • code is up-to-date with the latest developments of the target branch (rebased to it or whatever) => ⏩-merge for linear history is favoured

  • added code is linted

  • tests are passing (at least locally): we still have some random test failure on CI. thinking of asking spec/examples.txt to be commited

  • in case the changes are visible to the end-user,  video or screenshots should be added to the PR => helps with user testing

  • testing coverage improvement is improved.

  • CHANGELOG :  add a bullet point on top (optional: reference to github issue/PR )

  • parallele PR for documentation  on docusaurus  if the feature/fix is tagged for a release


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/ModuleLength: Module has too many lines. [420/100]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/AbcSize: Assignment Branch Condition size for molecule_info_from_structure is too high. [<22, 55, 15> 61.11/25]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/CyclomaticComplexity: Cyclomatic complexity for molecule_info_from_structure is too high. [12/7]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/MethodLength: Method has too many lines. [66/30]


c.set_out_format 'can'
ca_smiles = c.write_string(m, false).to_s.gsub(/\s.*/m, "").strip
ca_smiles = begin

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/PerceivedComplexity: Perceived complexity for molecule_info_from_structure is too high. [14/8]

str = c.write_string(m, false).to_s
str.lines.first.to_s.strip
rescue StandardError, SystemStackError
""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

@haditariq haditariq marked this pull request as draft January 29, 2026 08:53
@PiTrem PiTrem changed the title fix: rescue can generation with openbabel fix: rescue smiles generation with openbabel Jan 29, 2026
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