Skip to content

Commit 9d8ca13

Browse files
committed
chore: normalise line endings
1 parent dce8243 commit 9d8ca13

32 files changed

Lines changed: 2770 additions & 2770 deletions

.gitignore

Lines changed: 139 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,139 @@
1-
requirements_optional.txt
2-
poetry.lock
3-
ignore/
4-
5-
# Byte-compiled / optimized / DLL files
6-
__pycache__/
7-
*.py[cod]
8-
*$py.class
9-
10-
# C extensions
11-
*.so
12-
13-
# Distribution / packaging
14-
.Python
15-
build/
16-
develop-eggs/
17-
dist/
18-
downloads/
19-
eggs/
20-
.eggs/
21-
lib/
22-
lib64/
23-
parts/
24-
sdist/
25-
var/
26-
wheels/
27-
pip-wheel-metadata/
28-
share/python-wheels/
29-
*.egg-info/
30-
.installed.cfg
31-
*.egg
32-
MANIFEST
33-
34-
# PyInstaller
35-
# Usually these files are written by a python script from a template
36-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37-
*.manifest
38-
*.spec
39-
40-
# Installer logs
41-
pip-log.txt
42-
pip-delete-this-directory.txt
43-
44-
# Unit test / coverage reports
45-
htmlcov/
46-
.tox/
47-
.nox/
48-
.coverage
49-
.coverage.*
50-
.cache
51-
nosetests.xml
52-
coverage.xml
53-
*.cover
54-
*.py,cover
55-
.hypothesis/
56-
.pytest_cache/
57-
cover/
58-
59-
# Translations
60-
*.mo
61-
*.pot
62-
63-
# Django stuff:
64-
*.log
65-
local_settings.py
66-
db.sqlite3
67-
db.sqlite3-journal
68-
69-
# Flask stuff:
70-
instance/
71-
.webassets-cache
72-
73-
# Scrapy stuff:
74-
.scrapy
75-
76-
# Sphinx documentation
77-
docs/_build/
78-
79-
# PyBuilder
80-
target/
81-
82-
# Jupyter Notebook
83-
.ipynb_checkpoints
84-
85-
# IPython
86-
profile_default/
87-
ipython_config.py
88-
89-
# pyenv
90-
# For a library or package, you might want to ignore these files since the code is
91-
# intended to run in multiple environments; otherwise, check them in:
92-
# .python-version
93-
94-
# pipenv
95-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98-
# install all needed dependencies.
99-
#Pipfile.lock
100-
101-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
102-
__pypackages__/
103-
104-
# Celery stuff
105-
celerybeat-schedule
106-
celerybeat.pid
107-
108-
# SageMath parsed files
109-
*.sage.py
110-
111-
# Environments
112-
.env
113-
.venv
114-
env/
115-
venv/
116-
ENV/
117-
env.bak/
118-
venv.bak/
119-
120-
# Spyder project settings
121-
.spyderproject
122-
.spyproject
123-
124-
# Rope project settings
125-
.ropeproject
126-
127-
# mkdocs documentation
128-
/site
129-
130-
# mypy
131-
.mypy_cache/
132-
.dmypy.json
133-
dmypy.json
134-
135-
# Pyre type checker
136-
.pyre/
137-
138-
# pytype static type analyzer
139-
.pytype/
1+
requirements_optional.txt
2+
poetry.lock
3+
ignore/
4+
5+
# Byte-compiled / optimized / DLL files
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
10+
# C extensions
11+
*.so
12+
13+
# Distribution / packaging
14+
.Python
15+
build/
16+
develop-eggs/
17+
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
pip-wheel-metadata/
28+
share/python-wheels/
29+
*.egg-info/
30+
.installed.cfg
31+
*.egg
32+
MANIFEST
33+
34+
# PyInstaller
35+
# Usually these files are written by a python script from a template
36+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37+
*.manifest
38+
*.spec
39+
40+
# Installer logs
41+
pip-log.txt
42+
pip-delete-this-directory.txt
43+
44+
# Unit test / coverage reports
45+
htmlcov/
46+
.tox/
47+
.nox/
48+
.coverage
49+
.coverage.*
50+
.cache
51+
nosetests.xml
52+
coverage.xml
53+
*.cover
54+
*.py,cover
55+
.hypothesis/
56+
.pytest_cache/
57+
cover/
58+
59+
# Translations
60+
*.mo
61+
*.pot
62+
63+
# Django stuff:
64+
*.log
65+
local_settings.py
66+
db.sqlite3
67+
db.sqlite3-journal
68+
69+
# Flask stuff:
70+
instance/
71+
.webassets-cache
72+
73+
# Scrapy stuff:
74+
.scrapy
75+
76+
# Sphinx documentation
77+
docs/_build/
78+
79+
# PyBuilder
80+
target/
81+
82+
# Jupyter Notebook
83+
.ipynb_checkpoints
84+
85+
# IPython
86+
profile_default/
87+
ipython_config.py
88+
89+
# pyenv
90+
# For a library or package, you might want to ignore these files since the code is
91+
# intended to run in multiple environments; otherwise, check them in:
92+
# .python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
102+
__pypackages__/
103+
104+
# Celery stuff
105+
celerybeat-schedule
106+
celerybeat.pid
107+
108+
# SageMath parsed files
109+
*.sage.py
110+
111+
# Environments
112+
.env
113+
.venv
114+
env/
115+
venv/
116+
ENV/
117+
env.bak/
118+
venv.bak/
119+
120+
# Spyder project settings
121+
.spyderproject
122+
.spyproject
123+
124+
# Rope project settings
125+
.ropeproject
126+
127+
# mkdocs documentation
128+
/site
129+
130+
# mypy
131+
.mypy_cache/
132+
.dmypy.json
133+
dmypy.json
134+
135+
# Pyre type checker
136+
.pyre/
137+
138+
# pytype static type analyzer
139+
.pytype/

CHANGELOG.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
# Changelog
2-
3-
All major and minor version changes will be documented in this file. Details of
4-
patch-level version changes can be found in [commit messages](../../commits/master).
5-
6-
## 2022.2 - 2022/09/02
7-
8-
Improvements per https://github.com/FHPythonUtils/Waifu2x/pull/4, thanks
9-
https://github.com/ArielMAJ for the improvements and the changelog :)
10-
11-
- Old `main` function is now called `run` and receives all the same arguments as expected from CLI with the same default values.
12-
- This means the user can now import `waifu2x` and just run `waifu2x.run(input_img_path="./input.png", output_img_path="./output.png")` to upscale images from a script.
13-
- This also means everything works the same (main function calls `run()` with default args).
14-
- Added extra argument to `run` and a few other functions in `__init__.py` as to stop prints from happening (as they might not be wanted when importing this module.
15-
16-
Fix Pillow deprecations https://pillow.readthedocs.io/en/stable/deprecations.html#constants
17-
18-
## 2022.1 - 2022/04/12
19-
20-
- Improve tests
21-
- Code improvements (docs + typing)
22-
- Move docs
23-
- Update pre-commit
24-
25-
## 2022 - 2022/01/23
26-
27-
- Added tests
28-
```sh
29-
$ poetry run py -m pytest test/test.py
30-
===================================== test session starts ======================================
31-
32-
collected 4 items
33-
34-
test\test.py .... [100%]
35-
36-
====================================== 4 passed in 16.80s ======================================
37-
```
38-
- Bump pillow version (CVE-2022-22815, CVE-2022-22816, CVE-2022-22817)
39-
- Fix crash when image has no transparency
40-
41-
## 2021.2 - 2021/11/10
42-
43-
- pre-commit
44-
- type-hinting (partial)
45-
- code quality improvements
46-
47-
## 2021.1 - 2021/09/14
48-
49-
- fix alpha detection https://github.com/FHPythonUtils/Waifu2x/issues/1
50-
51-
## 2021 - 2021/04/15
52-
53-
- First release
1+
# Changelog
2+
3+
All major and minor version changes will be documented in this file. Details of
4+
patch-level version changes can be found in [commit messages](../../commits/master).
5+
6+
## 2022.2 - 2022/09/02
7+
8+
Improvements per https://github.com/FHPythonUtils/Waifu2x/pull/4, thanks
9+
https://github.com/ArielMAJ for the improvements and the changelog :)
10+
11+
- Old `main` function is now called `run` and receives all the same arguments as expected from CLI with the same default values.
12+
- This means the user can now import `waifu2x` and just run `waifu2x.run(input_img_path="./input.png", output_img_path="./output.png")` to upscale images from a script.
13+
- This also means everything works the same (main function calls `run()` with default args).
14+
- Added extra argument to `run` and a few other functions in `__init__.py` as to stop prints from happening (as they might not be wanted when importing this module.
15+
16+
Fix Pillow deprecations https://pillow.readthedocs.io/en/stable/deprecations.html#constants
17+
18+
## 2022.1 - 2022/04/12
19+
20+
- Improve tests
21+
- Code improvements (docs + typing)
22+
- Move docs
23+
- Update pre-commit
24+
25+
## 2022 - 2022/01/23
26+
27+
- Added tests
28+
```sh
29+
$ poetry run py -m pytest test/test.py
30+
===================================== test session starts ======================================
31+
32+
collected 4 items
33+
34+
test\test.py .... [100%]
35+
36+
====================================== 4 passed in 16.80s ======================================
37+
```
38+
- Bump pillow version (CVE-2022-22815, CVE-2022-22816, CVE-2022-22817)
39+
- Fix crash when image has no transparency
40+
41+
## 2021.2 - 2021/11/10
42+
43+
- pre-commit
44+
- type-hinting (partial)
45+
- code quality improvements
46+
47+
## 2021.1 - 2021/09/14
48+
49+
- fix alpha detection https://github.com/FHPythonUtils/Waifu2x/issues/1
50+
51+
## 2021 - 2021/04/15
52+
53+
- First release

0 commit comments

Comments
 (0)