Skip to content
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 .pre-commit-config.yaml #2026

Merged
merged 6 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.5.0'
hooks:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: '24.3.0'
hooks:
- id: black
args: ['--config=./pyproject.toml']

- repo: https://github.com/pycqa/isort
rev: '5.13.2'
hooks:
- id: isort
args: ['--settings-path=./pyproject.toml']
19 changes: 5 additions & 14 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NNPDF code and standards documentation <a name="top"></a>

Here we store documentation (user / developer guides) and specifications (for
cuts / data formats) for the NNPDF code.
Here we store the [documentation](https://docs.nnpdf.science/) (user / developer
guides)

## Sphinx Documentation

Expand Down Expand Up @@ -102,8 +102,8 @@ which provide clickable pieces of text which transport the reader to a
particular part of the document.

To do this: add an anchor point in the text. This may look like the following:
```
Lorem ipsum dolor sit amet <a name="label"</a> consectetur adipiscing elit, sed do
```
Lorem ipsum dolor sit amet <a name="label"</a> consectetur adipiscing elit, sed do
```

we can then jump to `label` from an arbitrary point in the text by using
Expand Down Expand Up @@ -175,18 +175,9 @@ To add a new module to document, add a new line in `sphinx/Makefile` under:

```
%: Makefile
@if test $@ != "clean"; then
@if test $@ != "clean"; then
sphinx-apidoc -o ./source/modules/validphys ../../validphys2/src/validphys/ ; \
sphinx-apidoc -o ./source/modules/<MODULE-NAME> <PATH-TO-MODULE> ;\
fi

```

### Currently documented
- [Validphys2 guide](https://data.nnpdf.science/validphys-docs/guide.html)
- [Data format specifications](https://docs.nnpdf.science/data/exp-data-files.html)
- Ancient (NNPDF3.0) cut specifications

### Immediate TODO
1. Separate conda instructions from Validphys2 guide
2. Pandoc data format specs to markdown (compiling it is a bit silly)
177 changes: 0 additions & 177 deletions doc/cuts/NNPDF30/FinalAgreement.html

This file was deleted.

Binary file removed doc/cuts/NNPDF30/dyprediction.pdf
Binary file not shown.
Binary file removed doc/cuts/NNPDF30/jetprediction.pdf
Binary file not shown.
Loading
Loading