-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1071 from samschott/isort
Isort everything
- Loading branch information
Showing
64 changed files
with
491 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,29 @@ name: Linting | |
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.x' | ||
- run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -U .[lint] | ||
- name: black | ||
run: | | ||
black --check --diff src tests | ||
- name: flake8 | ||
run: | | ||
flake8 src tests | ||
- name: mypy | ||
run: | | ||
mypy src | ||
- uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.x' | ||
- run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -U .[lint] | ||
- name: black | ||
run: | | ||
black --check --diff src tests | ||
- name: flake8 | ||
run: | | ||
flake8 src tests | ||
- name: mypy | ||
run: | | ||
mypy src | ||
- name: isort | ||
run: | | ||
isort src tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "maestral" | ||
version = "1.9.4" | ||
authors = [{name = "Sam Schott", email = "[email protected]"}] | ||
license = {text = "MIT"} | ||
authors = [{ name = "Sam Schott", email = "[email protected]" }] | ||
license = { text = "MIT" } | ||
description = "Open-source Dropbox client for macOS and Linux." | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
|
@@ -21,7 +21,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
] | ||
urls = {Homepage = "https://maestral.app"} | ||
urls = { Homepage = "https://maestral.app" } | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"click>=8.0.2", | ||
|
@@ -58,6 +58,7 @@ lint = [ | |
"black", | ||
"flake8", | ||
"flake8-pyproject", | ||
"isort", | ||
"mypy", | ||
"pyupgrade", | ||
"types-pkg_resources", | ||
|
@@ -103,3 +104,6 @@ ignore_missing_imports = true | |
[tool.black] | ||
line-length = 88 | ||
target-version = ["py38", "py39", "py310", "py311", "py312"] | ||
|
||
[tool.isort] | ||
profile = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import warnings | ||
|
||
|
||
__version__ = "1.9.4" | ||
__author__ = "Sam Schott" | ||
__url__ = "https://maestral.app" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from .cli import main | ||
|
||
|
||
if __name__ == "__main__": | ||
main(prog_name="maestral") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.