From a46c389a845c3c63281d20f8e60952af6608848c Mon Sep 17 00:00:00 2001 From: fabcor Date: Fri, 18 Oct 2024 17:29:49 +0200 Subject: [PATCH] Update GitHub Actions workflows --- .github/workflows/something.yaml | 24 ++++++++++++++++++++++++ .pre-commit-config.yaml | 11 +++++++++-- mxcubecore/__init__.py | 9 ++++++++- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/something.yaml diff --git a/.github/workflows/something.yaml b/.github/workflows/something.yaml new file mode 100644 index 0000000000..cd77cdcf7c --- /dev/null +++ b/.github/workflows/something.yaml @@ -0,0 +1,24 @@ +--- + + +name: Something + +"on": + pull_request: + types: [opened, reopened, synchronize] + +jobs: + black: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + + yamllint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: pip install yamllint + - run: yamllint . + +... diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a360004dd..abf2e2dec5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,27 @@ --- + + + + + repos: + + - repo: https://github.com/adrienverge/yamllint rev: v1.35.1 hooks: - id: yamllint args: - - --strict + - --strict - repo: https://github.com/python-poetry/poetry rev: 1.8.0 hooks: - id: poetry-check - - repo: https://github.com/myint/autoflake + - repo: https://github.com/PyCQA/autoflake rev: v2.3.1 hooks: - id: autoflake diff --git a/mxcubecore/__init__.py b/mxcubecore/__init__.py index 961be785d5..6f81fd79fd 100644 --- a/mxcubecore/__init__.py +++ b/mxcubecore/__init__.py @@ -1,4 +1,11 @@ -from __future__ import absolute_import + + + + +from __future__ import absolute_import + + + import logging from logging.handlers import RotatingFileHandler