-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d21d4c
commit e11c7a4
Showing
8 changed files
with
341 additions
and
1 deletion.
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
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,65 @@ | ||
exclude: "build|docs|node_modules|.git|.tox|dist|docs|data_gateway.egg-info" | ||
default_stages: [commit] | ||
fail_fast: true | ||
default_language_version: | ||
python: python3 # force all unspecified python hooks to run python3 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
args: ["--line-length", "120"] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
additional_dependencies: | ||
- "pep8-naming" | ||
args: | ||
- --ignore-names=setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,startTestRun,stopTestRun | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.3.0 | ||
hooks: | ||
- id: pydocstyle | ||
|
||
- repo: https://github.com/windpioneers/pre-commit-hooks | ||
rev: 0.0.5 | ||
hooks: | ||
- id: check-branch-name | ||
language_version: python3 | ||
args: | ||
- "^main$" | ||
- "^test$" | ||
- "^devops/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^doc/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^feature/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^fix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^hotfix/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^review/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^refactor/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^enhancement/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
- "^dependencies/([a-z][a-z0-9]*)(-[a-z0-9]+)*$" | ||
|
||
- repo: https://github.com/octue/pre-commit-hooks | ||
rev: 0.8.1 | ||
hooks: | ||
- id: check-commit-message-is-conventional | ||
stages: [commit-msg] | ||
args: | ||
- --maximum-body-line-length=2000 |
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,33 @@ | ||
# data-gateway | ||
|
||
Copyright (c) 2020-2022 The Aerosense Research Partners | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the The Aerosense Research Partners. | ||
Neither the name of the The Aerosense Research Partners nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED BY The Aerosense Research Partners AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL The Aerosense Research Partners BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## Third parties | ||
|
||
### dummy_serial | ||
|
||
The `dummy_serial` and `tests/test_dummy_serial` modules are based on | ||
the https://github.com/Smeedy/dummyserial fork of `dummyserial` by | ||
Greg Albrecht (https://github.com/ampledata/dummyserial). | ||
|
||
Copyright 2016 Orion Labs, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,17 @@ | ||
[tool.poetry] | ||
name = "data-gateway-sessions" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Marcus Lugg <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "data_gateway_sessions"}] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pre-commit = "^3.3.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
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,26 @@ | ||
[metadata] | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,build | ||
ignore = F405, E501, E203, W503 | ||
|
||
[isort] | ||
line_length=120 | ||
default_section = THIRDPARTY | ||
known_third_party = celery,corsheaders,django*,drf*,environ,fontawesome_5,graphene,grapple,modelcluster,requests,rest*,storages,taggit,wagtail*,whitenoise | ||
known_first_party = data_gateway,app,tests,cloud_functions,preprocessing,big_query,forms,exceptions,main,window_handler | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
lines_after_imports=2 | ||
# These are necessary for `isort` to create import statements that are | ||
# compatible with `black`. Changing these will break our auto-formatting. | ||
# See <https://black.readthedocs.io/en/stable/the_black_code_style.html>. | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
|
||
[pydocstyle] | ||
ignore = D100, D101, D104, D105, D107, D203, D205, D213, D301, D400, D415 |