This repository was archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta: Move directorutil into 'shared' directory
- Loading branch information
1 parent
98064b9
commit 89e6ba3
Showing
13 changed files
with
70 additions
and
3 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 |
---|---|---|
@@ -1 +1 @@ | ||
../directorutil | ||
../shared/directorutil |
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 +1 @@ | ||
../directorutil | ||
../shared/directorutil |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
exclude=*/media/*,*/migrations/*,secret* |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[settings] | ||
line_length=100 | ||
multi_line_output=3 | ||
include_trailing_comma=true | ||
skip_glob=secret* | ||
|
||
known_directorutil=directorutil | ||
default_section=THIRDPARTY | ||
sections=FUTURE,STDLIB,THIRDPARTY,DIRECTORUTIL,LOCALFOLDER |
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy] | ||
ignore_missing_imports = True |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[MAIN] | ||
# disable fixme so it doesn't block builds | ||
disable=missing-docstring,no-else-return,no-else-raise,no-else-break,bad-continuation,duplicate-code,too-many-branches,too-many-nested-blocks,too-many-locals,too-many-statements,too-many-public-methods,fixme,too-many-return-statements | ||
max-line-length=100 | ||
ignore-patterns=secret* | ||
|
||
good-names=i,j,j,ex,ch,fd,rc,T,_,js | ||
|
||
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$ |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[tool.black] | ||
line-length = 100 | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
| media | ||
| migrations | ||
| secret.* | ||
)/ | ||
''' |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
cd "$(dirname -- "$(dirname -- "$(readlink -f "$0")")")" | ||
|
||
for cmd in flake8 isort mypy pylint; do | ||
if [[ ! -x "$(which "$cmd")" ]]; then | ||
echo "Could not find $cmd. Please make sure that flake8, isort, mypy, and pylint are all installed." | ||
exit 1 | ||
fi | ||
done | ||
|
||
flake8 directorutil && isort --recursive --check directorutil && mypy directorutil && pylint directorutil |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
cd "$(dirname -- "$(dirname -- "$(readlink -f "$0")")")" | ||
|
||
for cmd in black autopep8 isort; do | ||
if [[ ! -x "$(which "$cmd")" ]]; then | ||
echo "Could not find $cmd. Please make sure that black, autopep8, and isort are all installed." | ||
exit 1 | ||
fi | ||
done | ||
|
||
# Order is important. There are a few things that black and autopep8 disagree on, and I side | ||
# with autopep8 on those. | ||
black directorutil && autopep8 --in-place --recursive directorutil && isort --recursive directorutil |
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 +1 @@ | ||
../directorutil | ||
../shared/directorutil |