Skip to content

Commit c9e541c

Browse files
committed
SDLC Automation (#1)
* Added support in gitignore to: pyenv, vscode, poetry (lock), yapf * Added SDLC components (poetry, pre-commit, pyproject.toml, etc.) * Initial MVP plugin design * Added code coverage * Cleanup
1 parent 891b386 commit c9e541c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2809
-17
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
open_collective: celery
2-

.gitignore

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# IDE stuff
2+
3+
.idea/*
4+
15
# Byte-compiled / optimized / DLL files
26
__pycache__/
37
*.py[cod]
@@ -70,6 +74,7 @@ instance/
7074

7175
# Sphinx documentation
7276
docs/_build/
77+
docs/_draft.rst
7378

7479
# PyBuilder
7580
.pybuilder/
@@ -85,7 +90,7 @@ ipython_config.py
8590
# pyenv
8691
# For a library or package, you might want to ignore these files since the code is
8792
# intended to run in multiple environments; otherwise, check them in:
88-
# .python-version
93+
.python-version
8994

9095
# pipenv
9196
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -138,4 +143,11 @@ dmypy.json
138143
cython_debug/
139144

140145
# PyCharm
141-
.idea/
146+
.idea/
147+
148+
# VSCode
149+
.devcontainer
150+
.vscode/
151+
152+
# YAPF
153+
.style.yapf

.pre-commit-config.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
repos:
2+
- repo: https://github.com/python-poetry/poetry
3+
rev: 1.4.0
4+
hooks:
5+
- id: poetry-check
6+
7+
- repo: https://github.com/asottile/yesqa
8+
rev: v1.4.0
9+
hooks:
10+
- id: yesqa
11+
12+
- repo: https://github.com/asottile/pyupgrade
13+
rev: v3.3.1
14+
hooks:
15+
- id: pyupgrade
16+
args: ["--py37-plus"]
17+
18+
- repo: https://github.com/PyCQA/autoflake
19+
rev: v2.0.1
20+
hooks:
21+
- id: autoflake
22+
args: ["--in-place", "--remove-unused-variables"]
23+
24+
- repo: https://github.com/pycqa/isort
25+
rev: 5.12.0
26+
hooks:
27+
- id: isort
28+
args:
29+
[
30+
"--multi-line",
31+
"7",
32+
"--force-single-line-imports",
33+
"--profile",
34+
"black",
35+
]
36+
37+
- repo: https://github.com/pre-commit/pre-commit-hooks
38+
rev: v4.4.0
39+
hooks:
40+
- id: check-ast
41+
- id: check-case-conflict
42+
- id: check-docstring-first
43+
- id: check-json
44+
- id: check-merge-conflict
45+
- id: check-shebang-scripts-are-executable
46+
- id: check-symlinks
47+
- id: check-toml
48+
- id: check-yaml
49+
- id: debug-statements
50+
- id: destroyed-symlinks
51+
- id: detect-private-key
52+
- id: end-of-file-fixer
53+
- id: forbid-submodules
54+
- id: mixed-line-ending
55+
- id: pretty-format-json
56+
args: ["--autofix"]
57+
- id: trailing-whitespace
58+
59+
- repo: https://github.com/psf/black
60+
rev: 23.1.0
61+
hooks:
62+
- id: black
63+
args: ["--line-length", "120"]
64+
65+
- repo: https://github.com/PyCQA/flake8
66+
rev: 6.0.0
67+
hooks:
68+
- id: flake8
69+
args: ["--max-line-length", "120"]

0 commit comments

Comments
 (0)