From c8062e4dde5a82e8cd69c7fa89814450dc92f44b Mon Sep 17 00:00:00 2001 From: Lea Vauchier Date: Thu, 30 May 2024 17:23:15 +0200 Subject: [PATCH] Apply linting --- .flake8 | 13 +++++++++++++ .pre-commit-config.yaml | 5 ++--- {test => macro}/version.py | 0 pyproject.toml | 2 ++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .flake8 rename {test => macro}/version.py (100%) create mode 100644 pyproject.toml diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..1536be0 --- /dev/null +++ b/.flake8 @@ -0,0 +1,13 @@ +[flake8] +max_line_length = 99 +show_source = True +format = pylint +extend-ignore = E203,E501 +exclude = + .git + __pycache__ + logs/* + .vscode/* + build/* + install/* + src/* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2fe0fe5..91a22ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,10 @@ repos: - repo: https://github.com/ambv/black - rev: 23.12.0 + rev: 24.4.2 hooks: - id: black - language_version: python3.11 - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/pycqa/isort diff --git a/test/version.py b/macro/version.py similarity index 100% rename from test/version.py rename to macro/version.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..57a5583 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 99