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.

Add ability to ignore file patterns

See original GitHub issue

Flycheck for python generates temp files for each change done in the file even if the file has not been saved. So my_file.py will generate flycheck_my_file.py. As far as I can tell there is no way to change the path or extension of these files.

This creates a problem with pytest-watch. Whenever I change anything it runs the tests even if I havent saved the file. I would really like it to only run on file save. What would be nice was if --ignore could also ignore files by pattern similar to how .gitignore works. So I could run ptw --ignore flycheck* and not trigger a test when the flycheck files are generated.

Regardless, I am loving this tool. Thanks for developing it.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

6reactions
freckletonjcommented, Jun 19, 2018

Emacs lock files endlessly trigger test runs. Autosaves are less frequent but still thorny. It would be nice if pytest-watch could respect .gitignore or custom regex/globs, eg: \#*\# and .\#*.

0reactions
KMontag42commented, Nov 8, 2022

bump

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add ability to ignore a file or directory without modifying it #4675
ini with ignore_errors = True -- see config file docs. I have a django codebase, where mypy is catching type errors in auto-generated...
Read more >
.gitignore File – How to Ignore Files and Folders in Git
It's a best practice to create a .gitignore file with all the files and the different file patterns you want to ignore when...
Read more >
Ignoring Files and Directories in Git with .gitignore
You can create files which contain a list of patterns which git will check against on each git add and ignore any matching...
Read more >
Version Control with Git: Ignoring Things
With the Repository Settings pop-up open, click the Ignored Files tab. Here you will be able to add file names, directory names, or...
Read more >
Ignoring Files in Git - Medium
Git has the ability to ignore any files, file patterns, or file extensions that you add to a .gitignore file.
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