diff options
author | Andrea Censi <AndreaCensi@users.noreply.github.com> | 2023-05-26 13:07:57 +0200 |
---|---|---|
committer | Andrea Censi <AndreaCensi@users.noreply.github.com> | 2023-05-26 13:07:57 +0200 |
commit | 86df730f4310fe590c99a7220099549a2b1c7ddb (patch) | |
tree | 1cc618bdee28ea1baae5b9095b8da49d3c19f01c | |
download | act4e-mcdp-86df730f4310fe590c99a7220099549a2b1c7ddb.tar.gz act4e-mcdp-86df730f4310fe590c99a7220099549a2b1c7ddb.zip |
init
-rw-r--r-- | .pre-commit-config.yaml | 27 | ||||
-rw-r--r-- | .pylintrc | 7 |
2 files changed, 34 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1b33320 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +exclude: .pre-commit-config.yaml|(.*autogen.*py)|(.*mcdpr1\.yaml) +files: (^src/.*py)|(.*yaml) +repos: +- hooks: + - {id: check-added-large-files} + - {id: check-case-conflict} + - {id: check-executables-have-shebangs} + - {id: check-merge-conflict} + - {id: check-symlinks} + repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 +- hooks: + - args: [-l, '110', -t, py310] + id: black + repo: https://github.com/psf/black + rev: 23.1.0 +- hooks: + - args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150', --preserve-quotes] + id: yamlfmt + repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt + rev: 0.2.2 +- hooks: + - {id: sort-all} + repo: https://github.com/aio-libs/sort-all + rev: v1.2.0 + +# sigil a98d289e6191fbd525fea7519a6ece40 diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..d13ca13 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,7 @@ +[MASTER] +disable= + C0114, # missing-module-docstring + C0115, # missing-class-docstring + C0116, # missing-function-docstring + C0103, # pylint complains about the TypeVar names https://github.com/PyCQA/pylint/issues/3324 + R0903, # too few public methods
\ No newline at end of file |