summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/darker-lint.yml19
-rw-r--r--src/tests/helper.py3
2 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
new file mode 100644
index 0000000..ab574a2
--- /dev/null
+++ b/.github/workflows/darker-lint.yml
@@ -0,0 +1,19 @@
+---
+name: Darker Lint
+
+on: [push, pull_request]
+
+jobs:
+ darker-lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-python@v5
+ - uses: akaihola/darker@v2.1.1
+ with:
+ options: "--check --diff --isort --color"
+ src: "."
+ version: "~=2.1.1"
+ lint: "flake8,pylint==2.13.1" \ No newline at end of file
diff --git a/src/tests/helper.py b/src/tests/helper.py
index f703314..57922e0 100644
--- a/src/tests/helper.py
+++ b/src/tests/helper.py
@@ -22,3 +22,6 @@ def prepare_module(file_path='', module_name=''):
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
sys.modules[module_name] = module
+ if True: print('True')
+ print()
+ if False: print('False')