Skip to content

Commit

Permalink
✨ add dev dependencies and
Browse files Browse the repository at this point in the history
  • Loading branch information
enryH committed Sep 9, 2024
1 parent 18de608 commit b9113c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: psf/black@stable
lint:
name: Lint with ruff
name: Format and Lint with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,6 +36,9 @@ jobs:
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check .
- name: Format with ruff
run: |
ruff format src --diff
test:
name: Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,4 +129,4 @@ jobs:
# remove repository key to set the default to pypi (not test.pypi.org)
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ docs\conf.py:
Install package so that new code is picked up in a restared python interpreter:
```
pip install -e .
pip install -e ".[dev]"
```
## TestPyPI
Expand All @@ -143,4 +143,4 @@ The documentation is build using readthedocs automatically. See
[project on Readthedocs](https://readthedocs.org/projects/rasmussenlab-python-package/).
- make sure to enable build from PRs in the settings (advanded settings)
- checkout configuration file: [`.readthedocs.yaml`](.readthedocs.yaml)
- checkout configuration file: [`.readthedocs.yaml`](.readthedocs.yaml)
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
authors = [
{name = "Jakob Nybo Nissen", email = "[email protected]"},
{name = "Henry Webel", email = "[email protected]"},
{ name = "Jakob Nybo Nissen", email = "[email protected]" },
{ name = "Henry Webel", email = "[email protected]" },
]
description = "A small example package"
name = "rasmussenlab-mockup"
Expand Down Expand Up @@ -31,10 +31,11 @@ docs = [
"sphinx-new-tab-link!=0.2.2",
"jupytext",
]
dev = ["black", "ruff", "pytest"]

# Configure the Ruff linter: Ignore error number 501
[tool.ruff]
ignore = ["E501"]
lint.ignore = ["E501"]

[build-system]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit b9113c9

Please sign in to comment.