diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..07f72d6 --- /dev/null +++ b/.flake8 @@ -0,0 +1,11 @@ +[flake8] +max-line-length=120 +ignore = + E121, + E123, + E126, + E226, + E24, + E704, + W605 +exclude = ./tests diff --git a/.gitignore b/.gitignore index 7655200..b8acba0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ build/ dist/ __pycache__ *.egg-info +idea diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..58734b9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..143c2f5 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8.19 diff --git a/LICENSE-MIT b/LICENSE-MIT index 5b62efb..653c70f 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,6 +1,6 @@ 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 obtaining a copy of this software and associated documentation diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..6f48956 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,51 @@ +[tool.poetry] +name = "smileyface" +version = "0.1.0" +description = "smileyface UT4 hub automator hosting" +authors = [ + "Mathew Guest ", +] +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