Skip to content

Commit 38a8548

Browse files
committed
chore: change default virtual env dir to .venv
To follow uv's defaults.
1 parent 5631a0f commit 38a8548

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/check.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
path: |
2020
~/.cache/pip
21-
venv
21+
.venv
2222
key: >-
2323
lint-${{ hashFiles(
2424
'.github/requirements.txt',
@@ -31,9 +31,9 @@ jobs:
3131
run: |
3232
set -euxo pipefail
3333
# venv due to mypy through pre-commit, venv-run
34-
python3 -m venv venv
35-
venv/bin/python3 -m pip install -Ur .github/requirements.txt
36-
- run: venv/bin/gitlint --commits "origin/$GITHUB_BASE_REF..HEAD"
34+
python3 -m venv .venv
35+
.venv/bin/python3 -m pip install -Ur .github/requirements.txt
36+
- run: .venv/bin/gitlint --commits "origin/$GITHUB_BASE_REF..HEAD"
3737
if: github.event_name == 'pull_request'
3838
- uses: pre-commit/[email protected]
3939

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
/.mise.local.toml
88
/.nox/
99
/.python-version
10+
/.venv/
1011
/build/
1112
/dist/
1213
/pip-wheel-metadata/
13-
/venv/
1414
__pycache__/

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ disallow_any_unimported = True
4545
disallow_any_decorated = True
4646
disallow_any_explicit = True
4747
warn_unreachable = True
48-
exclude = ^(build|venv)/
48+
exclude = ^(\.venv|build)/
4949
[mypy-argcomplete.*,nox.*,pytest.*,_pytest.*]
5050
# variable annotations present, errors out with python_version < 3.6
5151
follow_imports = skip

0 commit comments

Comments
 (0)