mirror of
https://git.zavage.net/Zavage-Software/smileyface.git
synced 2025-01-02 17:19:20 -07:00
build: poetry and some cleanup
This commit is contained in:
parent
93920d8a8b
commit
c69fc19b1d
11
.flake8
Normal file
11
.flake8
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[flake8]
|
||||||
|
max-line-length=120
|
||||||
|
ignore =
|
||||||
|
E121,
|
||||||
|
E123,
|
||||||
|
E126,
|
||||||
|
E226,
|
||||||
|
E24,
|
||||||
|
E704,
|
||||||
|
W605
|
||||||
|
exclude = ./tests
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,5 @@ build/
|
|||||||
dist/
|
dist/
|
||||||
__pycache__
|
__pycache__
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
idea
|
||||||
|
|
||||||
|
37
.pre-commit-config.yaml
Normal file
37
.pre-commit-config.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
args: ['--maxkb=10240']
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
# isort -- sorts imports
|
||||||
|
- repo: https://github.com/timothycrosley/isort
|
||||||
|
rev: 5.13.2
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
args: ["--profile", "black", "--filter-files"]
|
||||||
|
|
||||||
|
# Flake8
|
||||||
|
#- repo: https://github.com/pycqa/flake8
|
||||||
|
# rev: '7.0.0'
|
||||||
|
# hooks:
|
||||||
|
# - id: flake8
|
||||||
|
|
||||||
|
# Black
|
||||||
|
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
|
||||||
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||||
|
rev: 24.2.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
language_version: python3.8
|
||||||
|
|
||||||
|
# Poetry
|
||||||
|
- repo: https://github.com/python-poetry/poetry
|
||||||
|
rev: 1.8.2
|
||||||
|
hooks:
|
||||||
|
- id: poetry-lock
|
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.8.19
|
@ -1,6 +1,6 @@
|
|||||||
SmileyFace Unreal Tournament 4 Hub Automator
|
SmileyFace Unreal Tournament 4 Hub Automator
|
||||||
|
|
||||||
Copyright (c) 2020 Mathew Guest
|
Copyright (c) 2024 Mathew Guest
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation
|
obtaining a copy of this software and associated documentation
|
||||||
|
51
pyproject.toml
Normal file
51
pyproject.toml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
[tool.poetry]
|
||||||
|
name = "smileyface"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "smileyface UT4 hub automator hosting"
|
||||||
|
authors = [
|
||||||
|
"Mathew Guest <mat@zavage.net>",
|
||||||
|
]
|
||||||
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
homepage = ""
|
||||||
|
repository = ""
|
||||||
|
documentation = ""
|
||||||
|
keywords = ["cas"]
|
||||||
|
|
||||||
|
packages = [{ include = "smileyface" }]
|
||||||
|
include = [
|
||||||
|
"README.md",
|
||||||
|
]
|
||||||
|
|
||||||
|
# [tool.poetry.scripts]
|
||||||
|
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.8"
|
||||||
|
app_skellington = "*"
|
||||||
|
configobj = "*"
|
||||||
|
colorlog = "*"
|
||||||
|
appdirs = "*"
|
||||||
|
|
||||||
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
black = "*"
|
||||||
|
pre-commit = "*"
|
||||||
|
isort = "*"
|
||||||
|
flake8 = "*"
|
||||||
|
#Sphinx = "^5.3.0"
|
||||||
|
#sphinx-rtd-theme = "^1.3.0"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core>=1.0.0"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
line-length = 120
|
||||||
|
target-version = ['py38']
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
multi_line_output = 3
|
||||||
|
combine_as_imports = true
|
||||||
|
include_trailing_comma = true
|
||||||
|
force_grid_wrap = 3
|
||||||
|
ensure_newline_before_comments = true
|
Loading…
Reference in New Issue
Block a user