Format Markdown files to comply with Linter

This commit is contained in:
Ole Schütt 2020-08-24 23:11:31 +02:00 committed by Ole Schütt
parent e71e4793a6
commit 243f8aaefc
32 changed files with 1008 additions and 577 deletions

View file

@ -27,7 +27,7 @@ process each file individually, which makes them much more lightweight.
The [precommit.py](./precommit.py) script can be readily installed as git hook:
```
```shell
ln -fs ../../tools/precommit/precommit.py .git/hooks/pre-commit
```
@ -39,7 +39,7 @@ tedious installation a remote server is used by default. It is hosted at
The same server can also be started locally when Docker is available:
```
```shell
./start_local_server.sh
```
@ -48,7 +48,7 @@ The server can also be installed without Docker by following the steps in the
Once the server is up and running it can be used like this:
```
```shell
$ export CP2K_PRECOMMIT_SERVER="http://127.0.0.1:8080"
$ ./precommit.py
Running precommit checks using 8 workers and server: http://127.0.0.1:8080

View file

@ -167,7 +167,7 @@ def print_box(fn, message):
def process_file(fn, allow_modifications):
# Make a backup copy.
orig_content = Path(fn).read_bytes()
bak_fn = SCRATCH_DIR / f"{Path(fn).name}_{int(time())}.bak"
bak_fn = SCRATCH_DIR / f"{Path(fn).name}_{time()}.bak"
shutil.copy2(fn, bak_fn)
if re.match(r".*\.(F|fypp)$", fn):