Skip to content

Commit 89e6ba3

Browse files
committed
meta: Move directorutil into 'shared' directory
1 parent 98064b9 commit 89e6ba3

File tree

13 files changed

+70
-3
lines changed

13 files changed

+70
-3
lines changed

manager/directorutil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../directorutil
1+
../shared/directorutil

orchestrator/directorutil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../directorutil
1+
../shared/directorutil

shared/.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
max-line-length = 100
3+
exclude=*/media/*,*/migrations/*,secret*

shared/.isort.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[settings]
2+
line_length=100
3+
multi_line_output=3
4+
include_trailing_comma=true
5+
skip_glob=secret*
6+
7+
known_directorutil=directorutil
8+
default_section=THIRDPARTY
9+
sections=FUTURE,STDLIB,THIRDPARTY,DIRECTORUTIL,LOCALFOLDER
File renamed without changes.
File renamed without changes.

directorutil/ssl_context.py renamed to shared/directorutil/ssl_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ssl
55
from typing import Any, Dict, Optional
66

7+
78
def create_internal_client_ssl_context(
89
ssl_settings: Optional[Dict[str, Any]],
910
) -> Optional[ssl.SSLContext]:

shared/mypy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mypy]
2+
ignore_missing_imports = True

shared/pylintrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[MAIN]
2+
# disable fixme so it doesn't block builds
3+
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
4+
max-line-length=100
5+
ignore-patterns=secret*
6+
7+
good-names=i,j,j,ex,ch,fd,rc,T,_,js
8+
9+
const-rgx=(([a-zA-Z_][a-zA-Z0-9_]*)|(__.*__))$

shared/pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[tool.black]
2+
line-length = 100
3+
exclude = '''
4+
/(
5+
\.eggs
6+
| \.git
7+
| \.hg
8+
| \.mypy_cache
9+
| \.tox
10+
| \.venv
11+
| _build
12+
| buck-out
13+
| build
14+
| dist
15+
| media
16+
| migrations
17+
| secret.*
18+
)/
19+
'''

0 commit comments

Comments
 (0)