Skip to content

Commit 45237b9

Browse files
committed
enh(build): +pyproject.toml w/ Black excludes; gitignore venvs!
1 parent cd62f69 commit 45237b9

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ __pycache__/
77

88
# Distribution / packaging
99
.Python
10-
env/
10+
/env*/
11+
/.env*/
12+
/venv*/
13+
/.venv*/
1114
build/
1215
develop-eggs/
1316
dist/

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[build-system]
2+
requires = ["setuptools>=30.3.0", "wheel"]
3+
4+
[tool.black]
5+
## Also `.gitignore` is sourced.
6+
exclude = '''
7+
/(
8+
\.eggs
9+
|\.git
10+
|\.hg
11+
|\.mypy_cache
12+
|\.pytype
13+
|\.nox
14+
|\.tox
15+
|build
16+
|_build
17+
|buck-out
18+
|dist
19+
|.vscode/.+
20+
)/ | (
21+
\..*cache.*
22+
)
23+
'''

0 commit comments

Comments
 (0)