question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lint requirement version format

See original GitHub issue

I just had an issue with a PR (https://github.com/conda-forge/staged-recipes/pull/6025) where I used an invalid requirement string traittypes >= 0.2. Here, the last space (between >= and 0.2) should be removed. Ideally, this should be picked up by the linter.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
CJ-Wrightcommented, Oct 4, 2019
0reactions
kynancommented, Mar 28, 2021

Should we actually be linting the version spec for a requirement? I recently had a typo in the spec (stray trailing [), which wasn’t picked up by the linter but later failed conda’s _parse_spec_str. Could we use that function to parse version spec strings already in the linter?

Happy to open an new issue for this if you prefer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python_requirement - Pants build system
A Python requirement installable by pip. This target is useful when you want to declare Python requirements inline in a BUILD file.
Read more >
Requirements File Format - pip documentation v22.3.1
Requirements files serve as a list of items to be installed by pip, when using pip install. Files that use this format are...
Read more >
Automatically format and lint code with pre-commit - Interrupt
This article provides some background and guidelines for using pre-commit to automatically format and lint C-language firmware codebases.
Read more >
Rules | npm-package-json-lint
Rules · Require node rules​ · Type rules​ · Valid value rules​ · Dependency rules​ · Scripts rules​ · Format rules​ · Package.json...
Read more >
Improve your code with lint checks - Android Developers
The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found