Skip to content

Commit 4a223a2

Browse files
Implemenation of listeners and supporting classes and interfaces. (#2)
1 parent e9901cc commit 4a223a2

35 files changed

+2825
-151
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
architecture: x64
1616
- run: pip install nox==2022.8.7
1717
- run: pip install nox-poetry==1.0.1
18-
- run: pip install poetry==1.1.14
18+
- run: pip install poetry==1.2.0
1919
- run: nox --python ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,62 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v2.3.0
44
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
5+
- id: check-yaml
6+
- id: end-of-file-fixer
77
exclude: ^simple_syslog/generated/
8-
- id: trailing-whitespace
8+
- id: trailing-whitespace
99
exclude: ^simple_syslog/generated/
10-
- repo: local
10+
- repo: local
1111
hooks:
12-
- id: black
12+
- id: black
1313
exclude: ^simple_syslog/generated/
1414
name: black
1515
entry: poetry run black
1616
language: system
17-
types: [python]
18-
- id: flake8
17+
types: [ python ]
18+
- id: flake8
1919
exclude: ^simple_syslog/generated/
2020
name: flake8
2121
entry: poetry run flake8
2222
language: system
2323
types: [ python ]
24-
- id: isort
24+
- id: isort
2525
exclude: ^simple_syslog/generated/
2626
name: isort (python)
2727
entry: poetry run isort
2828
language: system
2929
types: [ python ]
30+
- id: autoflake
31+
name: autoflake
32+
types: [ python ]
33+
exclude: ^simple_syslog/generated/
34+
entry: poetry run autoflake
35+
language: system
36+
37+
- id: poetry-check
38+
name: poetry-check
39+
description: run poetry check to validate config
40+
entry: poetry check
41+
language: python
42+
language_version: python3
43+
pass_filenames: false
44+
files: ^pyproject.toml$
45+
46+
- id: poetry-lock
47+
name: poetry-lock
48+
description: run poetry lock to update lock file
49+
entry: poetry lock
50+
language: python
51+
language_version: python3
52+
pass_filenames: false
53+
54+
- id: poetry-export
55+
name: poetry-export
56+
description: run poetry export to sync lock file with requirements.txt
57+
entry: poetry export
58+
language: python
59+
language_version: python3
60+
pass_filenames: false
61+
files: ^poetry.lock$
62+
args: [ "-f", "requirements.txt", "-o", "requirements.txt" ]

docs/reference.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,39 @@ Reference
44
.. contents::
55
:local:
66
:backlinks: none
7+
8+
simple_syslog.builder
9+
--------------------------
10+
11+
.. automodule:: simple_syslog.builder
12+
:members:
13+
14+
simple_syslog.data
15+
--------------------------
16+
17+
.. automodule:: simple_syslog.data
18+
:members:
19+
20+
simple_syslog.keys
21+
--------------------------
22+
23+
.. automodule:: simple_syslog.keys
24+
:members:
25+
26+
simple_syslog.listener
27+
--------------------------
28+
29+
.. automodule:: simple_syslog.listener
30+
:members:
31+
32+
simple_syslog.policy
33+
--------------------------
34+
35+
.. automodule:: simple_syslog.policy
36+
:members:
37+
38+
simple_syslog.specification
39+
----------------------------
40+
41+
.. automodule:: simple_syslog.specification
42+
:members:

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def mypy(this_session: Session):
6969
"""Type Checking with mypy."""
7070
args = this_session.posargs or locations
7171
this_session.install("mypy", ".")
72+
this_session.install("pytest", ".")
7273
this_session.run("mypy", *args)
7374

7475

0 commit comments

Comments
 (0)