├── tests ├── __init__.py └── test_python_code.py ├── .github └── workflows │ └── all-lints.yml ├── Dockerfile ├── CONTRIBUTING.md ├── LICENSE ├── entrypoint.sh ├── action.yml ├── README.md ├── CODE_OF_CONDUCT.md └── .gitignore /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_python_code.py: -------------------------------------------------------------------------------- 1 | """Just one teste""" 2 | 3 | import uuid 4 | 5 | 6 | def get_name_len(name: str) -> int: 7 | """Len var""" 8 | return len(name) 9 | 10 | 11 | def start(): 12 | "Run ... " 13 | print(get_name_len("Ricardo")) 14 | print(uuid.uuid4().hex) 15 | -------------------------------------------------------------------------------- /.github/workflows/all-lints.yml: -------------------------------------------------------------------------------- 1 | name: all-lints 2 | 3 | on: [push] 4 | 5 | jobs: 6 | lint: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v4 11 | - uses: ricardochaves/python-lint@master 12 | with: 13 | python-root-list: "tests" 14 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Container image that runs your code 2 | FROM ricardobchaves6/python-lint-image:1.4.0 3 | 4 | # Copies your code file from your action repository to the filesystem path `/` of the container 5 | COPY entrypoint.sh /entrypoint.sh 6 | 7 | # Code file to execute when the docker container starts up (`entrypoint.sh`) 8 | ENTRYPOINT ["/entrypoint.sh"] 9 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributors 2 | 3 | ## Checkin 4 | 5 | - Do checkin source 6 | - Do not checkin devDependency pipenv 7 | - Do not checkin IDE files 8 | 9 | ## devDependencies 10 | 11 | The project dependencys are in [docker image](https://github.com/ricardochaves/python-lint-image). 12 | 13 | ## entrypoint 14 | 15 | Keep [entrypoint.sh](../entrypoint.sh) readable. The idea is that everyone can read, even those who don't know much about shell script. 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Ricardo Baltazar Chaves and contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -l 2 | 3 | # Parameters 4 | # 5 | # $1 - python-root-list 6 | # $2 - use-pylint 7 | # $3 - use-pycodestyle 8 | # $4 - use-flake8 9 | # $5 - use-black 10 | # $6 - use-mypy 11 | # $7 - use-isort 12 | # $8 - extra-pylint-options 13 | # $9 - extra-pycodestyle-options 14 | # ${10} - extra-flake8-options 15 | # ${11} - extra-black-options 16 | # ${12} - extra-mypy-options 17 | # ${13} - extra-isort-options 18 | 19 | if [ "$2" = true ] ; then 20 | 21 | echo Running: pylint $8 $1 22 | 23 | pylint $8 $1 24 | exit_code=$? 25 | 26 | if [ "$exit_code" = "0" ]; then 27 | echo "Pylint ok" 28 | else 29 | echo "Pylint error" 30 | exit $exit_code 31 | fi 32 | 33 | fi 34 | 35 | 36 | if [ "$3" = true ] ; then 37 | 38 | echo Running: pycodestyle $9 $1 39 | 40 | pycodestyle $9 $1 41 | exit_code=$? 42 | 43 | if [ "$exit_code" = "0" ]; then 44 | echo "pycodestyle ok" 45 | else 46 | echo "pycodestyle error" 47 | exit $exit_code 48 | fi 49 | 50 | fi 51 | 52 | if [ "$4" = true ] ; then 53 | 54 | echo Running: flake8 ${10} $1 55 | 56 | flake8 ${10} $1 57 | exit_code=$? 58 | 59 | if [ "$exit_code" = "0" ]; then 60 | echo "Flake8 ok" 61 | else 62 | echo "Flake8 error" 63 | exit $exit_code 64 | fi 65 | 66 | fi 67 | 68 | if [ "$5" = true ] ; then 69 | 70 | echo Running: black --check ${11} $1 71 | 72 | black --check ${11} $1 73 | exit_code=$? 74 | 75 | if [ "$exit_code" = "0" ]; then 76 | echo "Black ok" 77 | else 78 | echo "Black error" 79 | exit $exit_code 80 | fi 81 | 82 | fi 83 | 84 | if [ "$6" = true ] ; then 85 | 86 | echo Running: mypy ${12} $1 87 | 88 | mypy ${12} $1 89 | exit_code=$? 90 | 91 | if [ "$exit_code" = "0" ]; then 92 | echo "mypy ok" 93 | else 94 | echo "mypy error" 95 | exit $exit_code 96 | fi 97 | 98 | fi 99 | 100 | if [ "$7" = true ] ; then 101 | 102 | echo Running: isort ${13} $1 -c --diff 103 | 104 | isort ${13} $1 -c --diff 105 | exit_code=$? 106 | 107 | if [ "$exit_code" = "0" ]; then 108 | echo "isort ok" 109 | else 110 | echo "isort error" 111 | exit $exit_code 112 | fi 113 | 114 | fi -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: "Python Code Quality and Lint" 2 | description: "Supports Pylint, pycodestyle, Flake8, black, mypy and isort" 3 | inputs: 4 | python-root-list: 5 | description: "A list of all paths to test" 6 | required: false 7 | default: "." 8 | use-pylint: 9 | description: "Use Pylint" 10 | required: false 11 | default: true 12 | use-pycodestyle: 13 | description: "Use pycodestyle" 14 | required: false 15 | default: true 16 | use-flake8: 17 | description: "Use Flake8" 18 | required: false 19 | default: true 20 | use-black: 21 | description: "Use Black" 22 | required: false 23 | default: true 24 | use-mypy: 25 | description: "Use mypy" 26 | required: false 27 | default: true 28 | use-isort: 29 | description: "Use isort" 30 | required: false 31 | default: true 32 | extra-pylint-options: 33 | description: "Extra options: pylint $(extra-pylint-options) $(python-root-list)" 34 | required: false 35 | default: "" 36 | extra-pycodestyle-options: 37 | description: "Extra options: pycodestyle $(extra-pycodestyle-options) $(python-root-list)" 38 | required: false 39 | default: "" 40 | extra-flake8-options: 41 | description: "Extra options: flake8 $(extra-flake8-options) $(python-root-list)" 42 | required: false 43 | default: "" 44 | extra-black-options: 45 | description: "Extra options: black --check $(extra-black-options) $(python-root-list)" 46 | required: false 47 | default: "" 48 | extra-mypy-options: 49 | description: "Extra options: mypy $(extra-mypy-options) $(python-root-list)" 50 | required: false 51 | default: "" 52 | extra-isort-options: 53 | description: "Extra options: isort -rc $(extra-isort-options) $(python-root-list) -c --diff " 54 | required: false 55 | default: "" 56 | 57 | runs: 58 | using: "docker" 59 | image: "Dockerfile" 60 | args: 61 | - ${{ inputs.python-root-list }} 62 | - ${{ inputs.use-pylint }} 63 | - ${{ inputs.use-pycodestyle }} 64 | - ${{ inputs.use-flake8 }} 65 | - ${{ inputs.use-black }} 66 | - ${{ inputs.use-mypy }} 67 | - ${{ inputs.use-isort }} 68 | - ${{ inputs.extra-pylint-options }} 69 | - ${{ inputs.extra-pycodestyle-options }} 70 | - ${{ inputs.extra-flake8-options }} 71 | - ${{ inputs.extra-black-options }} 72 | - ${{ inputs.extra-mypy-options }} 73 | - ${{ inputs.extra-isort-options }} 74 | branding: 75 | icon: "terminal" 76 | color: "white" 77 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # python-lint 2 | 3 |

4 | All lints status

5 | 6 | ## About 7 | 8 | This action must be used for aplication the bids: 9 | 10 | - [black](https://github.com/psf/black) 11 | - [pylint](https://www.pylint.org/) 12 | - [isort](https://github.com/timothycrosley/isort) 13 | - [pycodestyle](https://pycodestyle.readthedocs.io) 14 | - [flake8](http://flake8.pycqa.org) 15 | - [mypy](http://mypy-lang.org/) 16 | 17 | ## Usage 18 | 19 | See [action.yml](action.yml) 20 | 21 | Basic: 22 | 23 | ```yml 24 | steps: 25 | - uses: actions/checkout@v4 26 | - uses: ricardochaves/python-lint@v1.4.0 27 | ``` 28 | 29 | Options: 30 | 31 | ```yml 32 | steps: 33 | - uses: actions/checkout@v4 34 | - uses: ricardochaves/python-lint@v1.4.0 35 | with: 36 | python-root-list: "python_alelo tests" 37 | use-pylint: false 38 | use-pycodestyle: false 39 | use-flake8: false 40 | use-black: false 41 | use-mypy: false 42 | use-isort: false 43 | extra-pylint-options: "" 44 | extra-pycodestyle-options: "" 45 | extra-flake8-options: "" 46 | extra-black-options: "" 47 | extra-mypy-options: "" 48 | extra-isort-options: "" 49 | ``` 50 | 51 | Command build logic list: 52 | 53 | ```bash 54 | pylint $(extra-pylint-options) $(python-root-list) 55 | 56 | pycodestyle $(extra-pycodestyle-options) $(python-root-list) 57 | 58 | flake8 $(extra-flake8-options) $(python-root-list) 59 | 60 | black --check $(extra-black-options) $(python-root-list) 61 | 62 | mypy $(extra-mypy-options) $(python-root-list) 63 | 64 | isort $(extra-isort-options) $(python-root-list) -c --diff 65 | ``` 66 | 67 | ## Versions used 68 | 69 | To identify the version used you must consult the [CHANGELOG.md](https://github.com/ricardochaves/python-lint-image/blob/master/CHANGELOG.md) of the image used in our [Dockerfile](https://github.com/ricardochaves/python-lint-image/blob/master/Dockerfile). 70 | 71 | ## Test locally 72 | 73 | Use [act](https://github.com/nektos/act) to test the action locally. 74 | Unfortunately it still doesn't work on all OSs, if you can't use it try the solution below. 75 | 76 | Some libs may behave differently between OSs. 77 | That's why this action runs on a docker image. This makes it possible for us to test some things locally. 78 | 79 | Using `docker compose`, add the following service 80 | 81 | ```yml 82 | test-lint: 83 | image: ricardobchaves6/python-lint-image:1.3.0 84 | working_dir: /app 85 | volumes: 86 | - .:/app 87 | command: ["mypy", "."] 88 | ``` 89 | 90 | Use the commands described in the section above. Choose the version of the image equivalent to the version of the action. 91 | 92 | ## License 93 | 94 | The scripts and documentation in this project are released under the [MIT License](LICENSE) 95 | 96 | ## Contributions 97 | 98 | Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) 99 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at ricardobchaves6@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/python,pycharm+all,intellij+all,visualstudiocode 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=python,pycharm+all,intellij+all,visualstudiocode 4 | 5 | ### Intellij+all ### 6 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 7 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 8 | 9 | # User-specific stuff 10 | .idea/**/workspace.xml 11 | .idea/**/tasks.xml 12 | .idea/**/usage.statistics.xml 13 | .idea/**/dictionaries 14 | .idea/**/shelf 15 | 16 | # Generated files 17 | .idea/**/contentModel.xml 18 | 19 | # Sensitive or high-churn files 20 | .idea/**/dataSources/ 21 | .idea/**/dataSources.ids 22 | .idea/**/dataSources.local.xml 23 | .idea/**/sqlDataSources.xml 24 | .idea/**/dynamic.xml 25 | .idea/**/uiDesigner.xml 26 | .idea/**/dbnavigator.xml 27 | 28 | # Gradle 29 | .idea/**/gradle.xml 30 | .idea/**/libraries 31 | 32 | # Gradle and Maven with auto-import 33 | # When using Gradle or Maven with auto-import, you should exclude module files, 34 | # since they will be recreated, and may cause churn. Uncomment if using 35 | # auto-import. 36 | # .idea/artifacts 37 | # .idea/compiler.xml 38 | # .idea/jarRepositories.xml 39 | # .idea/modules.xml 40 | # .idea/*.iml 41 | # .idea/modules 42 | # *.iml 43 | # *.ipr 44 | 45 | # CMake 46 | cmake-build-*/ 47 | 48 | # Mongo Explorer plugin 49 | .idea/**/mongoSettings.xml 50 | 51 | # File-based project format 52 | *.iws 53 | 54 | # IntelliJ 55 | out/ 56 | 57 | # mpeltonen/sbt-idea plugin 58 | .idea_modules/ 59 | 60 | # JIRA plugin 61 | atlassian-ide-plugin.xml 62 | 63 | # Cursive Clojure plugin 64 | .idea/replstate.xml 65 | 66 | # Crashlytics plugin (for Android Studio and IntelliJ) 67 | com_crashlytics_export_strings.xml 68 | crashlytics.properties 69 | crashlytics-build.properties 70 | fabric.properties 71 | 72 | # Editor-based Rest Client 73 | .idea/httpRequests 74 | 75 | # Android studio 3.1+ serialized cache file 76 | .idea/caches/build_file_checksums.ser 77 | 78 | ### Intellij+all Patch ### 79 | # Ignores the whole .idea folder and all .iml files 80 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 81 | 82 | .idea/ 83 | 84 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 85 | 86 | *.iml 87 | modules.xml 88 | .idea/misc.xml 89 | *.ipr 90 | 91 | # Sonarlint plugin 92 | .idea/sonarlint 93 | 94 | ### PyCharm+all ### 95 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 96 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 97 | 98 | # User-specific stuff 99 | 100 | # Generated files 101 | 102 | # Sensitive or high-churn files 103 | 104 | # Gradle 105 | 106 | # Gradle and Maven with auto-import 107 | # When using Gradle or Maven with auto-import, you should exclude module files, 108 | # since they will be recreated, and may cause churn. Uncomment if using 109 | # auto-import. 110 | # .idea/artifacts 111 | # .idea/compiler.xml 112 | # .idea/jarRepositories.xml 113 | # .idea/modules.xml 114 | # .idea/*.iml 115 | # .idea/modules 116 | # *.iml 117 | # *.ipr 118 | 119 | # CMake 120 | 121 | # Mongo Explorer plugin 122 | 123 | # File-based project format 124 | 125 | # IntelliJ 126 | 127 | # mpeltonen/sbt-idea plugin 128 | 129 | # JIRA plugin 130 | 131 | # Cursive Clojure plugin 132 | 133 | # Crashlytics plugin (for Android Studio and IntelliJ) 134 | 135 | # Editor-based Rest Client 136 | 137 | # Android studio 3.1+ serialized cache file 138 | 139 | ### PyCharm+all Patch ### 140 | # Ignores the whole .idea folder and all .iml files 141 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 142 | 143 | 144 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 145 | 146 | 147 | # Sonarlint plugin 148 | 149 | ### Python ### 150 | # Byte-compiled / optimized / DLL files 151 | __pycache__/ 152 | *.py[cod] 153 | *$py.class 154 | 155 | # C extensions 156 | *.so 157 | 158 | # Distribution / packaging 159 | .Python 160 | build/ 161 | develop-eggs/ 162 | dist/ 163 | downloads/ 164 | eggs/ 165 | .eggs/ 166 | lib/ 167 | lib64/ 168 | parts/ 169 | sdist/ 170 | var/ 171 | wheels/ 172 | pip-wheel-metadata/ 173 | share/python-wheels/ 174 | *.egg-info/ 175 | .installed.cfg 176 | *.egg 177 | MANIFEST 178 | 179 | # PyInstaller 180 | # Usually these files are written by a python script from a template 181 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 182 | *.manifest 183 | *.spec 184 | 185 | # Installer logs 186 | pip-log.txt 187 | pip-delete-this-directory.txt 188 | 189 | # Unit test / coverage reports 190 | htmlcov/ 191 | .tox/ 192 | .nox/ 193 | .coverage 194 | .coverage.* 195 | .cache 196 | nosetests.xml 197 | coverage.xml 198 | *.cover 199 | *.py,cover 200 | .hypothesis/ 201 | .pytest_cache/ 202 | pytestdebug.log 203 | 204 | # Translations 205 | *.mo 206 | *.pot 207 | 208 | # Django stuff: 209 | *.log 210 | local_settings.py 211 | db.sqlite3 212 | db.sqlite3-journal 213 | 214 | # Flask stuff: 215 | instance/ 216 | .webassets-cache 217 | 218 | # Scrapy stuff: 219 | .scrapy 220 | 221 | # Sphinx documentation 222 | docs/_build/ 223 | doc/_build/ 224 | 225 | # PyBuilder 226 | target/ 227 | 228 | # Jupyter Notebook 229 | .ipynb_checkpoints 230 | 231 | # IPython 232 | profile_default/ 233 | ipython_config.py 234 | 235 | # pyenv 236 | .python-version 237 | 238 | # pipenv 239 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 240 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 241 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 242 | # install all needed dependencies. 243 | #Pipfile.lock 244 | 245 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 246 | __pypackages__/ 247 | 248 | # Celery stuff 249 | celerybeat-schedule 250 | celerybeat.pid 251 | 252 | # SageMath parsed files 253 | *.sage.py 254 | 255 | # Environments 256 | .env 257 | .venv 258 | env/ 259 | venv/ 260 | ENV/ 261 | env.bak/ 262 | venv.bak/ 263 | 264 | # Spyder project settings 265 | .spyderproject 266 | .spyproject 267 | 268 | # Rope project settings 269 | .ropeproject 270 | 271 | # mkdocs documentation 272 | /site 273 | 274 | # mypy 275 | .mypy_cache/ 276 | .dmypy.json 277 | dmypy.json 278 | 279 | # Pyre type checker 280 | .pyre/ 281 | 282 | # pytype static type analyzer 283 | .pytype/ 284 | 285 | ### VisualStudioCode ### 286 | .vscode/* 287 | !.vscode/settings.json 288 | !.vscode/tasks.json 289 | !.vscode/launch.json 290 | !.vscode/extensions.json 291 | *.code-workspace 292 | 293 | ### VisualStudioCode Patch ### 294 | # Ignore all local history of files 295 | .history 296 | 297 | # End of https://www.toptal.com/developers/gitignore/api/python,pycharm+all,intellij+all,visualstudiocode --------------------------------------------------------------------------------