* chore: add .flake8 configuration file
* chore: add .pre-commit-config.yaml file with pre-commit hooks configuration * chore: add mxroute_relay/__init__.py file * chore: add pyproject.toml file with project metadata and dependencies configuration
This commit is contained in:
parent
bda36e14ae
commit
d841969e09
4 changed files with 62 additions and 0 deletions
3
.flake8
Normal file
3
.flake8
Normal file
|
@ -0,0 +1,3 @@
|
|||
[flake8]
|
||||
max-line-length = 160
|
||||
exclude = docs/*, .git, __pycache__, build
|
29
.pre-commit-config.yaml
Normal file
29
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
args: ['--maxkb=1024']
|
||||
- repo: https://github.com/asottile/reorder_python_imports
|
||||
rev: v3.10.0
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
args: [--application-directories, '.:bronzeburner', --py39-plus]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.9.1
|
||||
hooks:
|
||||
- id: black
|
||||
language_version: python3.10
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.5
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ["-c", "pyproject.toml"]
|
||||
additional_dependencies: ["bandit[toml]"]
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.1.0
|
||||
hooks:
|
||||
- id: flake8
|
0
mxroute_relay/__init__.py
Normal file
0
mxroute_relay/__init__.py
Normal file
30
pyproject.toml
Normal file
30
pyproject.toml
Normal file
|
@ -0,0 +1,30 @@
|
|||
[tool.poetry]
|
||||
name = "mxroute-relay"
|
||||
version = "0.0.1"
|
||||
description = "Firefox Relay clone for MXRoute forwarders"
|
||||
authors = ["Darryl Nixon <git@nixon.mozmail.com>"]
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
packages = [{ include = "mxroute_relay" }]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
starlette-admin = "^0.11.2"
|
||||
starlette = "^0.31.1"
|
||||
SQLAlchemy = "^2.0.20"
|
||||
flake8 = "^6.1.0"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "^23.9.1"
|
||||
isort = "^5.12.0"
|
||||
bandit = "^1.7.5"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ["/docs"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 160
|
Loading…
Reference in a new issue