Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help on python: darglint #284

Open
aemonge opened this issue Aug 8, 2024 · 0 comments
Open

Help on python: darglint #284

aemonge opened this issue Aug 8, 2024 · 0 comments

Comments

@aemonge
Copy link

aemonge commented Aug 8, 2024

I've tried the following, but I'm sure the lint options are not set correctly:

tools:
    python-darglint: &python-darglint
        lint-command: 'darglint -s numpy ${INPUT}'
        lint-stdin: false
        lint-formats:
            - '%f:%l:%t:%n: %m'
        lint-ignore-exit-code: true

languages:
    python:
        - <<: *python-darglint

Example output:

❯ darglint -s numpy /tmp/a.py
/tmp/a.py:example:4: DAR103:  ~a: expected int but was str

And error log:

   1 2024/08/08 14:20:23 lint for LanguageID not supported: python
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

No branches or pull requests

1 participant