Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8a58d7

Browse files
adds dev container config & update README
tox -e codestyle fix add ipython fix "conda install" failure address comments Update README.rst refactor dev container address feedbacks address comments
1 parent aca313f commit d8a58d7

4 files changed

Lines changed: 42 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "AstroPy",
3+
"image": "mcr.microsoft.com/devcontainers/miniconda:0-3",
4+
"onCreateCommand": "conda init bash && sudo cp .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
5+
"postCreateCommand": "git fetch --tag && pip install tox && pip install -e .[all,test_all,docs]",
6+
"waitFor": "postCreateCommand",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python",
11+
"ms-python.black-formatter",
12+
"charliermarsh.ruff",
13+
"stkb.rewrap"
14+
]
15+
}
16+
}
17+
}

.devcontainer/welcome-message.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
👋 Welcome to "AstroPy" in GitHub Codespaces!
2+
3+
🛠️ Your environment is fully setup with all the required software.
4+
5+
🔍 To explore VS Code to its fullest, search using the Command Palette (Cmd/Ctrl + Shift + P or F1).
6+
7+
ℹ️ Look at https://docs.astropy.org/en/latest/development/workflow/development_workflow.html for more contribution details.

README.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ page. A `summary of contribution guidelines <CONTRIBUTING.md>`_ can also be
3333
used as a quick reference when you are ready to start writing or validating
3434
code for submission.
3535

36+
Getting started with GitHub Codespaces
37+
--------------------------------------
38+
39+
Codespaces is a cloud development environment supported by GitHub. None of the Astropy build machinery depends on it, but it is a convenient way to quickly get started doing development on Astropy.
40+
41+
To get started, create a codespace for this repository by clicking this 👇
42+
43+
|Codespaces|
44+
45+
A codespace will open in a web-based version of Visual Studio Code. The `dev container <.devcontainer/devcontainer.json>`_ is fully configured with software needed for this project. Feel free to take a look at `GitHub Codespaces Support <https://support.github.com/features/codespaces>`_ page for help.
46+
47+
**Note**: Dev containers is an open spec which is supported by `GitHub Codespaces <https://github.com/codespaces>`_ and `other tools <https://containers.dev/supporting>`_.
48+
3649
Supporting the Project
3750
----------------------
3851

@@ -92,6 +105,10 @@ Astropy is licensed under a 3-clause BSD style license - see the
92105
.. |Donate| image:: https://img.shields.io/badge/Donate-to%20Astropy-brightgreen.svg
93106
:target: https://numfocus.salsalabs.org/donate-to-astropy/index.html
94107

108+
.. |Codespaces| image:: https://github.com/codespaces/badge.svg
109+
:target: https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=2081289
110+
:alt: Open in GitHub Codespaces
111+
95112

96113
If you locally cloned this repo before 7 Apr 2021
97114
-------------------------------------------------

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ all =
9595
typing_extensions>=3.10.0.1
9696
fsspec[http]>=2022.8.2
9797
s3fs>=2022.8.2
98+
pre-commit
9899
docs =
99100
sphinx
100101
sphinx-astropy>=1.6

0 commit comments

Comments
 (0)