Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
* upgrade all deps to latest to fix issues with local toolchain
* add exceptions for linters for new generated paths
* tiny rename for buf
  • Loading branch information
epikhinm committed Aug 8, 2024
1 parent e34b843 commit 58b59d5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ max-complexity = 15
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
extend-ignore = E203
exclude =
doublecloud/access
doublecloud/organizationmanager
doublecloud/clickhouse
doublecloud/kafka
doublecloud/logs
doublecloud/network
doublecloud/transfer
doublecloud/v1
Expand Down
15 changes: 9 additions & 6 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
max-line-length=120

[MASTER]
ignore-paths=^doublecloud/clickhouse/.*$,
^doublecloud/kafka/.*$,
^doublecloud/network/.*$,
^doublecloud/transfer/.*$,
^doublecloud/v1/.*$,
^doublecloud/visualization/.*$,
ignore-paths=^doublecloud/access/.*$,
^doublecloud/clickhouse/.*$,
^doublecloud/kafka/.*$,
^doublecloud/logs/.*$,
^doublecloud/network/.*$,
^doublecloud/organizationmanager.*$,
^doublecloud/transfer/.*$,
^doublecloud/v1/.*$,
^doublecloud/visualization/.*$,
disable=
C0114, # Missing module docstring (missing-module-docstring)
C0115, # Missing class docstring (missing-class-docstring)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ clean: ## clean environment and generated code
generate: submodule venv ## generate code from specifications
cp buf.yaml api/buf.yaml
cp buf.gen.yaml api/buf.gen.yaml
cd api; ../venv/bin/buf mod update
cd api; ../venv/bin/buf dep update
cd api; ../venv/bin/buf generate

find doublecloud -type d -exec touch {}/__init__.py \;
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ extend-exclude = '''
[tool.isort]
profile = "black"
skip_glob = [
"doublecloud/access/*",
"doublecloud/clickhouse/*",
"doublecloud/kafka/*",
"doublecloud/logs/*",
"doublecloud/network/*",
"doublecloud/organizationmanager/*",
"doublecloud/transfer/*",
"doublecloud/v1/*",
"doublecloud/visualization/*"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ pytest
python-semantic-release==7.34.6
tox
tox-gh-actions
grpcio-tools==1.62.1
grpcio-tools==1.65.4
wheel
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
author_email="support@double.cloud",
license="Apache License 2.0",
install_requires=[
"cryptography==42.0.5",
"grpcio==1.62.1",
"protobuf==4.22.1",
"grpcio-tools==1.62.1",
"googleapis-common-protos==1.63.0",
"pyjwt==2.8.0",
"requests==2.31.0",
"cryptography==43.0.0",
"grpcio==1.65.4",
"protobuf==5.27.3",
"grpcio-tools==1.65.4",
"googleapis-common-protos==1.63.2",
"pyjwt==2.9.0",
"requests==2.32.3",
"six==1.16.0",
],
classifiers=[
Expand Down

0 comments on commit 58b59d5

Please sign in to comment.