Skip to content

Commit

Permalink
Configure tools to work with .venv
Browse files Browse the repository at this point in the history
  • Loading branch information
colehaus committed Aug 18, 2022
1 parent 0e63cfa commit 00aa9ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ numpyro.egg-info
__pycache__/
.ipynb_checkpoints/
build
.venv/

# built / compiled
*.pyc
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys

root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
blacklist = ["/build/", "/dist/", "/pyro_api.egg"]
blacklist = ["/build/", "/dist/", "/pyro_api.egg", "/.venv/"]
file_types = [("*.py", "# {}"), ("*.cpp", "// {}")]

parser = argparse.ArgumentParser()
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[flake8]
max-line-length = 120
exclude = docs/src, build, dist, .ipynb_checkpoints
exclude = docs/src, build, dist, .ipynb_checkpoints, .venv
ignore = W503,E203
per-file-ignores =
numpyro/contrib/tfp/distributions.py:F811
Expand All @@ -17,6 +17,7 @@ force_sort_within_sections = true
combine_as_imports = true
multi_line_output = 3
skip=docs
extend_skip = .venv

[tool:pytest]
filterwarnings = error
Expand Down

0 comments on commit 00aa9ef

Please sign in to comment.