-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for the cutter #16
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.4 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# Run the formatter. | ||
- id: ruff-format |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
target-version = "py39" | ||
|
||
[lint] | ||
extend-select = [ | ||
"UP", # pyupgrade | ||
"D", # pydocstyle | ||
] | ||
|
||
ignore = [ | ||
"UP009", | ||
"D205", | ||
"D212", | ||
"D415", | ||
"D100", | ||
"D103", | ||
] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,12 +1,9 @@ | ||||||||
repos: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also suggest to add |
||||||||
- repo: https://github.com/psf/black | ||||||||
rev: 20.8b1 | ||||||||
hooks: | ||||||||
- id: black | ||||||||
language_version: python3 # Should be a command that runs python3.6+ | ||||||||
|
||||||||
- repo: https://gitlab.com/pycqa/flake8 | ||||||||
rev: '3.8.4' | ||||||||
hooks: | ||||||||
- id: flake8 | ||||||||
args: [--count, --show-source, --statistics] | ||||||||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||||||||
# Ruff version. | ||||||||
rev: v0.1.4 | ||||||||
hooks: | ||||||||
# Run the linter. | ||||||||
- id: ruff | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found this config to be quite helpful: automaticall print the issues, or autofix them if possible.
Suggested change
|
||||||||
# Run the formatter. | ||||||||
- id: ruff-format |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Read the Docs configuration file for MkDocs projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
{{cookiecutter.app_title}} | ||
{{cookiecutter.repo_name}} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Development | ||
|
||
Here may go a few notes on how to contribute the development of the app. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Introduction | ||
|
||
This is the documentation for the `{{cookiecutter.repo_name}}` app. | ||
{{ cookiecutter.short_description }} | ||
|
||
## Quick start | ||
|
||
To access the app, you should open AiiDAlab platform first by either: | ||
|
||
- Log into one of the [open AiiDAlab servers](https://www.aiidalab.net/deployments/). | ||
- Run the AiiDAlab docker container directly [on your local machine](https://aiidalab.readthedocs.io/en/latest/usage/index.html#usage-run-locally). | ||
|
||
Once you are in the AiiDAlab platform, you can find the app in the App Store. | ||
[Install it and launch it from there](https://aiidalab.readthedocs.io/en/latest/usage/index.html#install-a-new-app). | ||
|
||
Here may go with a few examples of how to use the app. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mkdocs-material~=9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Tutorial | ||
|
||
Here may go a few notes on how to use the app. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
site_name: Pseudopotential optimization | ||
nav: | ||
- Home: index.md | ||
- Tutorial: tutorial.md | ||
- Development: development.md | ||
theme: | ||
name: material | ||
markdown_extensions: | ||
- footnotes |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would propose to put the ruff configuration to |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
target-version = "py39" | ||
|
||
[lint] | ||
extend-select = [ | ||
"UP", # pyupgrade | ||
"D", # pydocstyle | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would propose to add the See my config (we definitely do not want all the rules I have, just those that are least painful / have most upside) If we enable isort, we should configure |
||
] | ||
|
||
ignore = [ | ||
"UP009", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please comment on each rule what it is and why it is ignored |
||
"D205", | ||
"D212", | ||
"D415", | ||
"D100", | ||
"D103", | ||
] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to latest version