mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 01:40:08 +00:00
[Lint] Exclude js and css from EOF fixer
- When running pre-commit on all files it is picking up minified js and css files. Since prettier will format correctly the source files ignore them in end-of-file fixer. - The template files in web docs can be ignored too. - Removed the unneeded `pre-commit-hooks` dependency as pre-commit resolves that itself. - Include files fixed by pre-commit.
This commit is contained in:
parent
6cf13d112b
commit
a8a4fb69c0
@ -1,3 +1,7 @@
|
|||||||
|
exclude: >
|
||||||
|
(?x)^(
|
||||||
|
deluge/ui/web/docs/template/.*|
|
||||||
|
)$
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 18.9b0
|
rev: 18.9b0
|
||||||
@ -29,6 +33,7 @@ repos:
|
|||||||
name: Fix Double-quotes
|
name: Fix Double-quotes
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
name: Fix End-of-files
|
name: Fix End-of-files
|
||||||
|
exclude_types: [javascript, css]
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
name: Fix Line-endings
|
name: Fix Line-endings
|
||||||
args: [--fix=auto]
|
args: [--fix=auto]
|
||||||
|
@ -65,4 +65,4 @@ I can't connect to the daemon from another machine:
|
|||||||
|
|
||||||
.. |docs| image:: https://readthedocs.org/projects/deluge/badge/?version=develop
|
.. |docs| image:: https://readthedocs.org/projects/deluge/badge/?version=develop
|
||||||
:target: https://readthedocs.org/projects/deluge/?badge=develop
|
:target: https://readthedocs.org/projects/deluge/?badge=develop
|
||||||
:alt: Documentation Status
|
:alt: Documentation Status
|
||||||
|
@ -9,7 +9,3 @@
|
|||||||
*no client-side validation (could be solved by a ui.aclient exception-plugin)
|
*no client-side validation (could be solved by a ui.aclient exception-plugin)
|
||||||
*expand/arrows in sidebar are disabled to save space, fix the space issue or implement an alternative
|
*expand/arrows in sidebar are disabled to save space, fix the space issue or implement an alternative
|
||||||
*fix and move tracker_host column+status-field to core.
|
*fix and move tracker_host column+status-field to core.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,4 +3,4 @@ The Deluge Core
|
|||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|
||||||
DelugeRPC <rpc>
|
DelugeRPC <rpc>
|
||||||
|
@ -102,4 +102,4 @@ Remote API
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
.. autoclass:: deluge.__rpcapi.RpcApi
|
.. autoclass:: deluge.__rpcapi.RpcApi
|
||||||
:members:
|
:members:
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
Deluge Console UI
|
Deluge Console UI
|
||||||
=================
|
=================
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
Deluge GTK UI
|
Deluge GTK UI
|
||||||
=============
|
=============
|
||||||
|
@ -7,4 +7,4 @@ Interfaces.
|
|||||||
|
|
||||||
Gtk Interface <gtk>
|
Gtk Interface <gtk>
|
||||||
Web Interface <web>
|
Web Interface <web>
|
||||||
Console Interface <console>
|
Console Interface <console>
|
||||||
|
@ -16,4 +16,4 @@ for information on creating one) you are able to specify which you want to use.
|
|||||||
There are 2 ways to enable SSL encryption in the webserver, 1 is to specify it
|
There are 2 ways to enable SSL encryption in the webserver, 1 is to specify it
|
||||||
in your configuration (accessible via the Preferences window). The other is to
|
in your configuration (accessible via the Preferences window). The other is to
|
||||||
add '--ssl' when running the webserver, which will override the configuration
|
add '--ssl' when running the webserver, which will override the configuration
|
||||||
value and enable SSL.
|
value and enable SSL.
|
||||||
|
@ -60,4 +60,3 @@
|
|||||||
module="T/Twisted/Twisted-12.3.0.tar.bz2"/>
|
module="T/Twisted/Twisted-12.3.0.tar.bz2"/>
|
||||||
</distutils>
|
</distutils>
|
||||||
</moduleset>
|
</moduleset>
|
||||||
|
|
||||||
|
@ -47,4 +47,3 @@ find $LIBDIR/python/deluge-*.egg -name "*.py" -exec rm -f {} \; # Remove source
|
|||||||
rm -fr $LIBDIR/pygtk/2.0/*demo*
|
rm -fr $LIBDIR/pygtk/2.0/*demo*
|
||||||
|
|
||||||
echo "*** Packaging done:`du -hs $APPDIR | cut -f 1`"
|
echo "*** Packaging done:`du -hs $APPDIR | cut -f 1`"
|
||||||
|
|
||||||
|
@ -22,4 +22,4 @@ style "user-font"
|
|||||||
{
|
{
|
||||||
font_name="9"
|
font_name="9"
|
||||||
}
|
}
|
||||||
widget_class "*" style "user-font"
|
widget_class "*" style "user-font"
|
||||||
|
@ -6,7 +6,6 @@ tox
|
|||||||
tox-venv
|
tox-venv
|
||||||
detox
|
detox
|
||||||
pre-commit
|
pre-commit
|
||||||
pre-commit-hooks
|
|
||||||
flake8-blind-except
|
flake8-blind-except
|
||||||
flake8-builtins
|
flake8-builtins
|
||||||
flake8-commas
|
flake8-commas
|
||||||
|
Loading…
x
Reference in New Issue
Block a user