Create a setup.py file, PyCharm has a tool for this. Tools -> create setup.py a basic setup.py file looks like this:
from setuptools import setup
with open('README.md') as readme:| Name: Flake8 | |
| File type: Python | |
| Scope: Project Files/Current File | |
| Program: $PyInterpreterDirectory$/flake8 | |
| Arguments: $FileDir$/$FileName$ | |
| Output paths to refresh: $FileDir$ | |
| Working directory: $ProjectFileDir$ | |
| Outup filters: $FILE_PATH$:$LINE$:$COLUMN$: $MESSAGE$ |
| .headers on | |
| .mode column | |
| .nullvalue null |
| # Enable mouse mode (tmux 2.1 and above) | |
| set -g mouse on | |
| TERM="xterm-256color" | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| # Other examples: |
| set number | |
| set mouse=a | |
| syntax on |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Theme |
| [flake8] | |
| max-line-length = 88 | |
| extend-ignore = E203, W503 | |
| exclude = ./venv |
| #!/bin/zsh | |
| sleep 10 && scp -r aws:/home/tahir/projects/postgres_db/db_backups ./ |
| # rename file by creation date | |
| exiftool '-filename<CreateDate' -d '%Y%m%d_%H%M%S%%-c.%%le' -r ./ | |
| perl-rename -v 's/(\d{4})-(\d{2})-(\d{2}) (\d{2}).(\d{2}).(\d{2})/$1$2$3_$4$5$6/' * | |
| # remove IMG or VID prefix | |
| perl-rename -v 's/(IMG)_(\d{8})_(\d{6})/$2_$3/' * |
| rmlint -gkm [path] // [origpath] |