Skip to content

Commit 11d518c

Browse files
authored
Merge pull request #1 from huntflow/INT-145_empty_project
[INT-145] Add empty project with pdm
2 parents fca6610 + 7e42ea1 commit 11d518c

File tree

8 files changed

+565
-0
lines changed

8 files changed

+565
-0
lines changed

.flake8

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
exclude = build,dist,.git,.tox,.env,.venv,.github,env,venv,__pycache__,__pypackages__
3+
max-line-length = 100
4+
max-complexity = 8
5+
inline-quotes = double
6+
ignore = A003, VNE003

.github/workflows/publish.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build and publish package to PyPI
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-20.04
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up PDM
15+
uses: pdm-project/setup-pdm@v3
16+
17+
- name: Publish package distributions to PyPI
18+
run: pdm publish

.github/workflows/python-linters.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Linters
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ['3.7.15']
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up PDM
18+
uses: pdm-project/setup-pdm@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
pdm sync
25+
26+
- name: Run black
27+
run: pdm run black . --check
28+
29+
- name: Run flake
30+
run: pdm run flake8
31+
32+
- name: Run mypy
33+
run: pdm run mypy .
34+
35+
- name: Run isort
36+
run: pdm run isort . --check

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5+
.idea
56

67
# C extensions
78
*.so
@@ -158,3 +159,4 @@ cython_debug/
158159
# and can be added to the global gitignore or merged into this file. For a more nuclear
159160
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160161
#.idea/
162+
.pdm-python

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2012-2023 Scott Chacon and others
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

models/__init__.py

Whitespace-only changes.

pdm.lock

+422
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
[project]
3+
name = "huntflow-webhook-models"
4+
version = "0.0.1"
5+
description = "Huntflow webhooks requests data models"
6+
authors = [
7+
{name = "Developers huntflow", email = "[email protected]"},
8+
]
9+
dependencies = [
10+
"pydantic>=1.7.2",
11+
]
12+
requires-python = ">=3.7"
13+
readme = "README.md"
14+
license = {text = "MIT"}
15+
classifiers = [
16+
"Programming Language :: Python :: 3.7",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
]
22+
23+
[build-system]
24+
requires = ["pdm-backend"]
25+
build-backend = "pdm.backend"
26+
27+
[tool.pdm.dev-dependencies]
28+
lint = [
29+
"isort>=5.11.5",
30+
"black>=23.3.0",
31+
"mypy>=1.3.0",
32+
"flake8>=5.0.4",
33+
"flake8-builtins>=2.1.0",
34+
"flake8-bugbear>=23.3.12",
35+
"flake8-quotes>=3.3.2",
36+
"flake8-variables-names>=0.0.5",
37+
"flake8-commas>=2.1.0",
38+
"setuptools>=67.8.0",
39+
]
40+
41+
[tool.black]
42+
line-length = 100
43+
target-version = ["py38"]
44+
45+
46+
[tool.isort]
47+
line_length = 100
48+
multi_line_output = 3
49+
profile = "black"
50+
default_section = "THIRDPARTY"
51+
52+
53+
[tool.mypy]
54+
plugins = ["pydantic.mypy"]
55+
exclude = ["__pypackages__"]
56+
follow_imports = "silent"
57+
warn_redundant_casts = true
58+
warn_unused_ignores = true
59+
check_untyped_defs = true
60+
no_implicit_reexport = true
61+
disallow_untyped_defs = true

0 commit comments

Comments
 (0)