Skip to content

Commit

Permalink
Merge pull request #2 from gwf/gwf-workflows
Browse files Browse the repository at this point in the history
Gwf workflows
  • Loading branch information
gwf authored Oct 3, 2023
2 parents feb276e + b45e22d commit 2264ea6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python application

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cryptography
pip install pylint
- name: Run unit tests
run: |
python -m unittest discover
- name: Lint with pylint
run: |
pylint $(git ls-files '*.py')
4 changes: 2 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ disable=raw-checker-failed,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
use-implicit-booleaness-not-comparison-to-string,
use-implicit-booleaness-not-comparison-to-zero
# use-implicit-booleaness-not-comparison-to-string,
# use-implicit-booleaness-not-comparison-to-zero

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
6 changes: 6 additions & 0 deletions random_permutation/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
"""
This module provides the RandomPermutation class for efficiently
generating very large random permutations of a given size. The
permutations can be varied using the seed parameter and the number of
ciphers used can be controlled using the num_ciphers parameter.
"""
from .permutation import RandomPermutation
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
This setup file is used to package the random_permutation module.
The module is used for efficiently generating very large random permutations.
"""

from setuptools import setup, find_packages

setup(
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# This file is intentionally left blank
# This file is intentionally left blank

0 comments on commit 2264ea6

Please sign in to comment.