Skip to content

Commit 00aa9ef

Browse files
committed
Configure tools to work with .venv
1 parent 0e63cfa commit 00aa9ef

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ numpyro.egg-info
22
__pycache__/
33
.ipynb_checkpoints/
44
build
5+
.venv/
56

67
# built / compiled
78
*.pyc

Diff for: scripts/update_headers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88

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

1313
parser = argparse.ArgumentParser()

Diff for: setup.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
22
max-line-length = 120
3-
exclude = docs/src, build, dist, .ipynb_checkpoints
3+
exclude = docs/src, build, dist, .ipynb_checkpoints, .venv
44
ignore = W503,E203
55
per-file-ignores =
66
numpyro/contrib/tfp/distributions.py:F811
@@ -17,6 +17,7 @@ force_sort_within_sections = true
1717
combine_as_imports = true
1818
multi_line_output = 3
1919
skip=docs
20+
extend_skip = .venv
2021

2122
[tool:pytest]
2223
filterwarnings = error

0 commit comments

Comments
 (0)