Skip to content

Commit

Permalink
feat(infra): noxfile and envt
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Sep 27, 2024
1 parent 27a8e78 commit a20ae25
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 236 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.terminal.executeInFileDir": true,
"python.terminal.launchArgs": [
"-m",
"lessons"
]
}
234 changes: 0 additions & 234 deletions clean-modular-code/joss-pyos-data.md

This file was deleted.

3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ dependencies:
- black
- ruff
- isort
- jupyterlab_code_formatter
- jupyterlab_code_formatter
- jupytext
10 changes: 9 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@ View contributors

## Who this guidebook is for

This is a living guide that is updated as tools and best practices evolve in the Python packaging ecosystem. We will be adding new content over the next year.
This living guide is updated tools and best practices evolve in the Python packaging ecosystem. We will be adding new content over the next year.

:::{toctree}
:hidden:
:caption: Lessons
:maxdepth: 2

Lessons <clean-modular-code/intro-clean-code>
:::
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def docs_live(session):
so they don't need to remember the specific sphinx-build parameters to build a different language.
"""
session.install("-e", ".[dev]")
session.install("-r", "requirements.txt")
if not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR)
# Make sure jupy text syncs things
Expand Down

0 comments on commit a20ae25

Please sign in to comment.