From f63e1a4062854dd3e3606a14e3d494064e82a80c Mon Sep 17 00:00:00 2001 From: cemde <42615086+cemde@users.noreply.github.com> Date: Fri, 13 May 2022 00:38:29 +0100 Subject: [PATCH] Gha (#4) * added gha for linting formatting added makefile * formatting * added file length to black --- Makefile | 4 ++-- copy_syntax/__init__.py | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9b38b0d..42d4a12 100644 --- a/Makefile +++ b/Makefile @@ -37,8 +37,8 @@ format: isort -rc . ;\ autoflake -r --in-place --remove-unused-variables $(package_name)/ ;\ autoflake -r --in-place --remove-unused-variables tests/ ;\ - black $(package_name)/ --skip-string-normalization ;\ - black tests/ --skip-string-normalization + black $(package_name)/ --line-length 120 --skip-string-normalization ;\ + black tests/ --line-length 120 --skip-string-normalization checkformat: . $(venv_activate_path) ;\ diff --git a/copy_syntax/__init__.py b/copy_syntax/__init__.py index f61f927..bdeddf0 100644 --- a/copy_syntax/__init__.py +++ b/copy_syntax/__init__.py @@ -13,4 +13,12 @@ # self.string = string # def set_prefix(package): -__all__ = [syntax, Literal, syntax_like, sequence, pandas_prefix, numpy_prefix, pytorch_prefix] +__all__ = [ + syntax, + Literal, + syntax_like, + sequence, + pandas_prefix, + numpy_prefix, + pytorch_prefix, +]