Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
mcucchi9 committed Sep 27, 2023
1 parent 00b5574 commit e7e0d70
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/ecmwf-projects/cookiecutter-conda-package",
"commit": "8a346c4ecd7ada4447ab9c224fe3a8b17a79f540",
"commit": "429e173a60bbf888e48d1987797aeac5ad840c47",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conda-merge
run: |
$CONDA/bin/python -m pip install conda-merge
Expand All @@ -56,7 +56,7 @@ jobs:
python-version: ['3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download combined environments
uses: actions/download-artifact@v3
with:
Expand All @@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download combined environments
uses: actions/download-artifact@v3
with:
Expand All @@ -108,7 +108,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download combined environments
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
extra: -integration

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download combined environments
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
(needs.integration-tests.result == 'success' || needs.integration-tests.result == 'skipped')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install packages
run: |
$CONDA/bin/python -m pip install build twine
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
Expand All @@ -20,12 +20,12 @@ repos:
- id: blackdoc
additional_dependencies: [black==22.3.0]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.290
hooks:
- id: ruff
args: [--fix, --show-fixes]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
rev: 0.7.17
hooks:
- id: mdformat
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
Expand All @@ -36,6 +36,6 @@ repos:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
rev: v8.18.0
hooks:
- id: gitleaks
4 changes: 3 additions & 1 deletion ci/environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ dependencies:
- make
- mypy
- myst-parser
- pip
- pre-commit
- pydata-sphinx-theme
- pytest
- pytest-cov
- sphinx
- sphinx-autoapi
- pip:
- sphinx-autoapi
# DO NOT EDIT ABOVE THIS LINE, ADD DEPENDENCIES BELOW
15 changes: 4 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,7 @@ strict = true
[tool.ruff]
ignore = [
# pydocstyle: Missing Docstrings
"D1",
# pydocstyle: numpy convention
"D107",
"D203",
"D212",
"D213",
"D402",
"D413",
"D415",
"D416",
"D417"
"D1"
]
# Black line length is 88, but black does not format comments.
line-length = 110
Expand All @@ -60,6 +50,9 @@ select = [
"D"
]

[tool.ruff.pydocstyle]
convention = "numpy"

[tool.setuptools]
packages = ["ogc_api_processes_fastapi"]

Expand Down

0 comments on commit e7e0d70

Please sign in to comment.