Skip to content

Commit 26cce85

Browse files
committed
Style: update python header
1 parent ecd3039 commit 26cce85

12 files changed

+86
-161
lines changed

.gitattributes

+23-121
Original file line numberDiff line numberDiff line change
@@ -8,152 +8,81 @@
88

99
# SOURCE CODE
1010
*.bat text eol=crlf
11-
*.c text
12-
*.cc text
13-
*.coffee text
14-
*.cpp text
15-
*.css text
16-
*.go text
17-
*.h text
18-
*.hh text
19-
*.hpp text
20-
*.html text
21-
*.inc text
22-
*.ini text
23-
*.java text
24-
*.js text
25-
*.jsx text
26-
*.less text
27-
*.php text
28-
*.proto text
2911
*.py text
30-
*.rb text
31-
*.sass text
32-
*.sass text
33-
*.scss text
3412
*.sh text eol=lf
35-
*.sql text
36-
*.styl text
37-
*.ts text
38-
*.tsx text
39-
*.vue text
40-
*.xml text
41-
*.xhtml text
4213

43-
# DOCKER
44-
*.dockerignore text
45-
Dockerfile text
14+
# COMPILED FILES
15+
*.dll binary
16+
*.dylib binary
17+
*.exe binary
18+
*.pyc binary
19+
*.so binary
4620

4721
# DOCUMENTATION
48-
*.markdown text
4922
*.md text
50-
*.mdwn text
51-
*.mdown text
52-
*.mkd text
53-
*.mkdn text
54-
*.mdtxt text
55-
*.mdtext text
5623
*.txt text
57-
AUTHORS text
58-
CHANGELOG text
59-
CHANGES text
60-
CONTRIBUTING text
61-
COPYING text
62-
copyright text
63-
*COPYRIGHT* text
64-
INSTALL text
65-
license text
6624
LICENSE text
67-
NEWS text
68-
readme text
69-
*README* text
70-
TODO text
71-
72-
# TEMPLATES
73-
*.ejs text
74-
*.haml text
75-
*.jade text
76-
*.tmpl text
77-
*.twig text
7825

7926
# CONFIGS
80-
*.babelrc text
81-
*.bowerrc text
82-
*.cnf text
83-
*.conf text
84-
*.config text
8527
.editorconfig text
8628
.gitattributes text
87-
.gitconfig text
8829
.gitignore text
89-
.htaccess text
30+
*.conf text
31+
*.config text
9032
*.json text
9133
*.lock text
92-
Procfile text
34+
*.toml text
9335
*.yaml text
9436
*.yml text
95-
Makefile text
96-
makefile text
97-
98-
# LINTERS
99-
.csslintrc text
100-
.eslintrc text
101-
.eslintignore text
102-
.htmlhintrc text
103-
.jscsrc text
104-
.jshintrc text
105-
.jshintignore text
106-
.stylelintrc text
107-
.stylelignore text
10837

10938
# GRAPHICS
11039
*.ai binary
11140
*.bmp binary
11241
*.eps binary
11342
*.gif binary
43+
*.heic binary
11444
*.ico binary
115-
*.jng binary
116-
*.jp2 binary
117-
*.jpg binary
11845
*.jpeg binary
119-
*.jpx binary
120-
*.jxr binary
46+
*.jpg binary
12147
*.pdf binary
12248
*.png binary
12349
*.psb binary
12450
*.psd binary
12551
*.svg text
126-
*.svgz binary
12752
*.tif binary
12853
*.tiff binary
12954
*.wbmp binary
13055
*.webp binary
13156

13257
# AUDIO
133-
*.kar binary
58+
*.aac binary
59+
*.flac binary
13460
*.m4a binary
13561
*.mid binary
13662
*.midi binary
13763
*.mp3 binary
64+
*.mp4a binary
65+
*.mpga binary
66+
*.oga binary
13867
*.ogg binary
139-
*.ra binary
68+
*.wav binary
69+
*.weba binary
14070

14171
# VIDEO
142-
*.3gpp binary
72+
*.3g2 binary
14373
*.3gp binary
144-
*.as binary
14574
*.asf binary
146-
*.asx binary
75+
*.avi binary
76+
*.f4v binary
14777
*.fla binary
14878
*.flv binary
14979
*.m4v binary
150-
*.mng binary
15180
*.mov binary
15281
*.mp4 binary
15382
*.mpeg binary
15483
*.mpg binary
15584
*.ogv binary
156-
*.swc binary
85+
*.qt binary
15786
*.swf binary
15887
*.webm binary
15988

@@ -166,35 +95,8 @@ makefile text
16695
*.zip binary
16796

16897
# FONTS
169-
*.ttf binary
17098
*.eot binary
17199
*.otf binary
100+
*.ttf binary
172101
*.woff binary
173102
*.woff2 binary
174-
175-
# Compiled Object files
176-
*.slo binary
177-
*.lo binary
178-
*.o binary
179-
*.obj binary
180-
181-
# Precompiled Headers
182-
*.gch binary
183-
*.pch binary
184-
185-
# Compiled Dynamic libraries
186-
*.so binary
187-
*.dylib binary
188-
*.dll binary
189-
190-
# Compiled Static libraries
191-
*.lai binary
192-
*.la binary
193-
*.a binary
194-
*.lib binary
195-
196-
# EXECUTABLES
197-
*.exe binary
198-
*.pyc binary
199-
*.out binary
200-

.github/COMMIT_CONVENTION.md

+10-20
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Messages must be matched by the following regex:
88

99
``` js
10-
/^(Revert: )?(Feature|Fix|Docs|Improvement|Config|Examples|Security|Style|Refactor|Performance|Test|Build|CI|Types)(\(.+\))?: .{1,80}/
10+
/^(Revert: )?(Feature|Fix|Docs|Improve|Config|Example|Refactor|Style|Test|Build|CI)(\(.+\))?: .{1,80}/
1111
```
1212

1313
## Commit Message Format
@@ -36,7 +36,7 @@ Docs(changelog): update changelog to beta.5
3636
```
3737

3838
```text
39-
Feat($browser): onUrlChange event (popstate/hashchange/polling)
39+
Feature($browser): onUrlChange event (popstate/hashchange/polling)
4040
4141
Added new event to $browser:
4242
- forward popstate event if available
@@ -89,29 +89,19 @@ If the commit reverts a previous commit, it should begin with `Revert: `, follow
8989

9090
Must be one of the following:
9191

92-
* **Build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm, yarn)
93-
* **CI**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
94-
* **Config**: Configuration changes
95-
* **Docs**: Documentation only changes
96-
* **Examples**: Changes for example code
92+
* **Build**: Changes that affect the build system or external dependencies (example scopes: gulp, npm, yarn)
93+
* **CI**: Changes to CI related configuration files and scripts (example scopes: travis, circle, browserstack)
94+
* **Config**: Changes to other configuration files (example scopes: webpack, babel, docker)
95+
* **Docs**: Documentation only changes (example scopes: readme, changelog)
96+
* **Example**: Changes for example code
9797
* **Feature**: A new feature
9898
* **Fix**: A bug fix
99-
* **Improvement**: Backwards-compatible enhancement changes
100-
* **Performance**: A code change that improves performance
99+
* **Improve**: Backwards-compatible enhancement changes
101100
* **Refactor**: A code change that neither fixes a bug nor adds a feature
102-
* **Security**: A security issue fix
103101
* **Style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
104-
* **Test**: Adding missing tests or correcting existing tests
105-
* **Types**: Typescript related changes
102+
* **Test**: Changes for testing code
106103

107-
If the prefix is in the below types, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
108-
109-
* `Examples`
110-
* `Feature`
111-
* `Fix`
112-
* `Perf`
113-
* `Improvement`
114-
* `Security`
104+
If the prefix is `Feature` or `Fix`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
115105

116106
### Scope
117107

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
2626
## Minimal reproduction of the problem with instructions
2727

2828
<!--
29-
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via https://stackblitz.com, github repo or similar.
29+
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via github repo or similar tools.
3030
-->
3131

3232
## What is the motivation / use case for changing the behavior?

.github/PULL_REQUEST_TEMPLATE.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
Please make sure to read the Pull Request Guidelines:
3+
https://github.com/Armour/Automatic-Image-Colorization/blob/master/.github/CONTRIBUTING.md#submitting-a-pull-request
4+
-->
5+
6+
<!-- PULL REQUEST TEMPLATE -->
7+
<!-- (Update "[ ]" to "[x]" to check a box) -->
8+
9+
**What kind of change does this PR introduce?** (check at least one)
10+
11+
- [ ] Bugfix
12+
- [ ] Feature
13+
- [ ] Code style update
14+
- [ ] Refactor
15+
- [ ] Build-related changes
16+
- [ ] Other, please describe:
17+
18+
**Does this PR introduce a breaking change?** (check one)
19+
20+
- [ ] Yes
21+
- [ ] No
22+
23+
If yes, please describe the impact and migration path for existing applications:
24+
25+
**The PR fulfills these requirements:**
26+
27+
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `Closes #xxx[,#xxx]`, where "xxx" is the issue number)
28+
29+
If adding a **new feature**, the PR's description includes:
30+
31+
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
32+
33+
**Other information:**

.gitignore

+12-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ __pycache__/
1313

1414
# Distribution / packaging
1515
.Python
16-
env/
1716
build/
1817
develop-eggs/
1918
dist/
@@ -29,6 +28,7 @@ wheels/
2928
*.egg-info/
3029
.installed.cfg
3130
*.egg
31+
MANIFEST
3232

3333
# PyInstaller
3434
# Usually these files are written by a python script from a template
@@ -50,6 +50,7 @@ nosetests.xml
5050
coverage.xml
5151
*.cover
5252
.hypothesis/
53+
.pytest_cache/
5354

5455
# Translations
5556
*.mo
@@ -58,6 +59,7 @@ coverage.xml
5859
# Django stuff:
5960
*.log
6061
local_settings.py
62+
db.sqlite3
6163

6264
# Flask stuff:
6365
instance/
@@ -84,13 +86,14 @@ celerybeat-schedule
8486
# SageMath parsed files
8587
*.sage.py
8688

87-
# dotenv
89+
# Environments
8890
.env
89-
90-
# virtualenv
9191
.venv
92+
env/
9293
venv/
9394
ENV/
95+
env.bak/
96+
venv.bak/
9497

9598
# Spyder project settings
9699
.spyderproject
@@ -106,7 +109,11 @@ ENV/
106109
.mypy_cache/
107110

108111
# .vscode
109-
.vscode/
112+
.vscode/*
113+
!.vscode/settings.json
114+
!.vscode/tasks.json
115+
!.vscode/launch.json
116+
!.vscode/extensions.json
110117

111118
# .idea
112119
.idea/

common.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
"""The utility functions for training and testing."""
55

6-
__author__ = 'Chong Guo'
6+
__author__ = 'Chong Guo <[email protected]>'
77
__copyright__ = 'Copyright 2018, Chong Guo'
88
__license__ = 'GPL'
9-
__email__ = '[email protected]'
109

1110
import os
1211

config.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
"""Config file that contains all config varibles."""
55

6-
__author__ = 'Chong Guo'
6+
__author__ = 'Chong Guo <[email protected]>'
77
__copyright__ = 'Copyright 2018, Chong Guo'
88
__license__ = 'GPL'
9-
__email__ = '[email protected]'
109

1110
import numpy as np
1211
import tensorflow as tf

0 commit comments

Comments
 (0)