Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xmba15 committed Jul 19, 2024
0 parents commit 66dcfa3
Show file tree
Hide file tree
Showing 11 changed files with 219 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches: ["master"]
pull_request:

jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Apply pre-commit
uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files
88 changes: 88 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
.ipynb_checkpoints
*~
*#
build*

# Packages #
###################
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Images
######################
*.jpg
*.gif
*.png
*.svg
*.ico

# Video
######################
*.wmv
*.mpg
*.mpeg
*.mp4
*.mov
*.flv
*.avi
*.ogv
*.ogg
*.webm

# Audio
######################
*.wav
*.mp3
*.wma

# Fonts
######################
Fonts
*.eot
*.ttf
*.woff

# Format
######################
CPPLINT.cfg
.clang-format

# Gtags
######################
GPATH
GRTAGS
GSYMS
GTAGS
46 changes: 46 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
repos:
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
entry: pflake8
additional_dependencies: [pep8-naming, pyproject-flake8]

- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: [types-PyYAML, types-setuptools]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [json, markdown, yaml]

- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh

- repo: https://github.com/pylint-dev/pylint.git
rev: v3.1.1
hooks:
- id: pylint
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 📝 image harmonization for copy-and-paste

---

## :tada: TODO

---

- [ ] a
- [ ] b

## :running: How to Run

---

## 🎛 Development environment

---

```bash
mamba env create --file environment.yml
mamba activate image_harmonization
```

## :gem: References

---
Empty file added data/.keep
Empty file.
Empty file added docs/.keep
Empty file.
9 changes: 9 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: image_harmonization
channels:
- defaults
- anaconda
dependencies:
- python=3.8
- pip
- pip:
- -r requirements.txt
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tool.flake8]
max-line-length = 120
max-complexity = 20

[tool.black]
line-length = 120

[tool.isort]
profile = "black"
multi_line_output = 3

[tool.mypy]
ignore_missing_imports = true

[tool.pylint."MESSAGES CONTROL"]
disable = """
missing-docstring,
import-error,
wrong-import-position,
exec-used,
too-many-locals
"""
max-line-length = 120
Empty file added requirements.txt
Empty file.
Empty file added scripts/.keep
Empty file.
Empty file added src/__init__.py
Empty file.

0 comments on commit 66dcfa3

Please sign in to comment.