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.

Supply directory names at command line to search

See original GitHub issue

Related Python linting tools like pep8, flake8 and pydocstyle will accept a mixture of filenames and directory names (e.g. ., Tests or Tests/). When a directory is given, they appear to recurse under it and lint any matching files (here presumably using *.py).

I would like to be able to run commands like rst-lint *.rst Scripts/ Tests/ or just rsl-lint . and have it recurse under the given directories to find *.rst files. This pattern might be set by a new optional argument.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
twolfsoncommented, Nov 14, 2018

Support for this has been added in 1.2.0 via @dhruvsomani in #48

0reactions
twolfsoncommented, May 27, 2017

flake8 doesn’t support wildcard expansion. Here’s some example commands to verify that:

$ flake8 *.py --verbose
flake8.plugins.manager    MainProcess    102 INFO     Loading entry-points for "flake8.extension".
...
flake8.checker            MainProcess    129 INFO     Making checkers
flake8.checker            MainProcess    132 INFO     Checking 2 files
...
$ flake8 '*.py' --verbose
flake8.plugins.manager    MainProcess     97 INFO     Loading entry-points for "flake8.extension".
...
flake8.checker            MainProcess    121 INFO     Making checkers
flake8.checker            MainProcess    123 INFO     Checking 0 files
...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Find a Directory/Folder with CMD without knowing full path
I don't know the full path to a folder, just the folder name. I would like to find everywhere where this folder is...
Read more >
Find Files in Linux Using the Command Line | Linode
You can use the find command to search for a file or directory on ... Use find from the command line to locate...
Read more >
Linux / UNIX List Just Directories Or Directory Names - nixCraft
The grep command is used to searches input. It will filter out directories name by matching first character ' d '. To reverse...
Read more >
Use the Unix find command to search for files - IU KB
Use the Unix find command to search for files. To use the find command, at the Unix prompt, enter: find . -name "pattern"...
Read more >
dir | Microsoft Learn
This command lists only the drive letter, directory name, file name, and file name extension (one path per line), for each file name...
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