Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 2170210

Browse files
Code quality improvements, CI, and gevent-safe. (#9)
* apply changes from graingert#23 (#8) - use sendall() instead of send() - allow custom max_buffer_size - set socket timeout before connect Thanks to @mrname * Add CI, code quality improvements, fix tests * Don't run pytest in CI since there's no clamd Co-authored-by: Steve Pike <[email protected]>
1 parent b0b5225 commit 2170210

14 files changed

+744
-241
lines changed

.flake8

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[flake8]
2-
ignore=E501
2+
ignore = E501,W503
3+
per-file-ignores = __init__.py:F401
4+
exclude = .nox,test

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/github_release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5+
6+
name: Create GitHub Release
7+
8+
jobs:
9+
build:
10+
name: Create GitHub Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Create release
14+
id: create_release
15+
uses: actions/create-release@v1
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
tag_name: ${{ github.ref }}
20+
release_name: ${{ github.ref }}
21+
draft: false
22+
prerelease: false

.github/workflows/lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
lint:
10+
name: Run linters
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@v2
15+
- name: "Setup Python"
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.8
19+
- name: "Run image"
20+
uses: abatilo/[email protected]
21+
- name: Install dependencies
22+
run: poetry install
23+
- name: "Run linters"
24+
run: poetry run nox -e lint

.github/workflows/main.yml

-25
This file was deleted.

.github/workflows/release.yml

-32
This file was deleted.

.pylintrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[MESSAGES CONTROL]
2+
disable=C0301,W1203,duplicate-code

0 commit comments

Comments
 (0)