Skip to content

Commit

Permalink
DX: default to Python 3.9 in dev environment (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Jan 17, 2024
1 parent a7f1507 commit 247f5cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tasks:
- init: pyenv local 3.8
- init: pyenv local 3.9
- init: pip install -e .[dev]

github:
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: compwa-policy
channels:
- defaults
dependencies:
- python==3.8.*
- python==3.9.*
- pip
- pip:
- -e .[dev]
Expand Down
2 changes: 1 addition & 1 deletion src/compwa_policy/check_dev_files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _create_argparse() -> ArgumentParser:
)
parser.add_argument(
"--dev-python-version",
default="3.8",
default="3.9",
help="Specify the Python version for your developer environment",
required=False,
type=str,
Expand Down
4 changes: 2 additions & 2 deletions src/compwa_policy/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __update_doc_section(
del config["jobs"]["doc"]
else:
with_section = config["jobs"]["doc"]["with"]
if python_version != "3.8":
if python_version != "3.9":
with_section["python-version"] = DoubleQuotedScalarString(python_version)
if apt_packages:
with_section["apt-packages"] = " ".join(apt_packages)
Expand All @@ -178,7 +178,7 @@ def __update_doc_section(


def __update_style_section(config: CommentedMap, python_version: PythonVersion) -> None:
if python_version != "3.8":
if python_version != "3.9":
config["jobs"]["style"]["with"] = {
"python-version": DoubleQuotedScalarString(python_version)
}
Expand Down

0 comments on commit 247f5cc

Please sign in to comment.