From 47d726223b6c341cbd3fed6459718739a60f042b Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 2 Sep 2024 13:53:33 +0100 Subject: [PATCH] feat: bump dev, add pre-commit, update setup --- .pre-commit-config.yaml | 15 +++++++++++++++ man/man1/pylems.1 | 4 ++-- setup.cfg | 6 +++++- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..5f83cf7 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +# 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.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.1 + hooks: + - id: ruff + args: [ "--select", "I", "--fix" ] + - id: ruff-format diff --git a/man/man1/pylems.1 b/man/man1/pylems.1 index 20702ad..a687d73 100644 --- a/man/man1/pylems.1 +++ b/man/man1/pylems.1 @@ -1,5 +1,5 @@ -.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. -.TH PYLEMS "1" "November 2021" "https://lems.github.io" "User Commands" +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH PYLEMS "1" "September 2024" "https://lems.github.io" "User Commands" .SH NAME pylems \- LEMS interpreter implemented in Python .SH DESCRIPTION diff --git a/setup.cfg b/setup.cfg index 9cace79..91d481f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = PyLEMS -version = 0.6.7 +version = 0.6.8 author = PyLEMS authors and contributors author_email = gautham@lisphacker.org, p.gleeson@gmail.com maintainer_email = p.gleeson@gmail.com @@ -41,6 +41,10 @@ console_scripts = doc = sphinxcontrib-bibtex +dev = + pre-commit + ruff + [flake8] # ignore: # spacing around operators, comment blocks, in argument lists