Skip to content

Commit 6a71b85

Browse files
authored
Merge pull request #111 from timlnx/bitmath2
Bitmath2. Almost production release. We'll get there and tag it soon!
2 parents 9405a02 + 1010cfe commit 6a71b85

80 files changed

Lines changed: 3208 additions & 2717 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- mode: conf -*-
22
[run]
3-
include = bitmath/__init__.py,bitmath/integrations.py
43
[report]
54
exclude_lines =
65
# These should be impossible to trigger.
@@ -14,11 +13,7 @@ exclude_lines =
1413
# Explicitly label a line as 'do not cover'
1514
pragma: no cover
1615

17-
# Stuff to skip only on Python 2.x. Insert a line like:" # pragma:
18-
# PY2X no cover" And export the env var "PYVER" as "PY2X". To skip
19-
# certain things on only Py3.x export PYVER as PY3X
20-
#
21-
# Review: http://nedbatchelder.com/code/coverage/config.html#h_Syntax if you need a refresher
16+
# Review: https://coverage.readthedocs.io/en/stable/config.html#syntax if you need a refresher
2217
#
2318
# BTW, the exports happen in the Makefile on lines like (for the 3.x tests):
2419
#
File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
21+

.github/workflows/codeql.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CodeQL Security Scan
2+
3+
on:
4+
push:
5+
branches: ["master", "bitmath2"]
6+
pull_request:
7+
branches: ["master"]
8+
schedule:
9+
- cron: "0 0 * * 0"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze Python
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
env:
20+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v6.0.2
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v4
28+
with:
29+
languages: python
30+
31+
- name: Autobuild
32+
uses: github/codeql-action/autobuild@v4
33+
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v4
36+
with:
37+
category: "/language:python"

.github/workflows/makefile.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/python.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Python CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
permissions:
8+
pull-requests: write
9+
env:
10+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
11+
strategy:
12+
matrix:
13+
python-version: ["3.11", "3.12", "3.13"]
14+
os: ["macos-latest", "ubuntu-latest"]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: "GitHub Checks it out :sunglasses-face:"
18+
uses: actions/checkout@v6.0.2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: 'pip'
25+
26+
- name: Verify Test Case Names Unique
27+
run: |
28+
./tests/test_unique_testcase_names.sh
29+
30+
- name: install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -r requirements.txt
34+
35+
- name: Pre-Tests code smell validation
36+
run: |
37+
pycodestyle -v --ignore=E501,E722 bitmath/__init__.py tests/*.py
38+
flake8 --select=F bitmath/__init__.py tests/*.py
39+
40+
- name: Run Unit Tests
41+
run: |
42+
pytest -v --cov=bitmath --cov-report term-missing --cov-report term:skip-covered --cov-report xml:coverage.xml tests
43+
44+
- name: Coverage report on PR
45+
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
46+
uses: MishaKav/pytest-coverage-comment@main
47+
with:
48+
pytest-xml-coverage-path: ./coverage.xml
49+
title: "Test Coverage Report"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pip-log.txt
3434

3535
# Unit test / coverage reports
3636
.coverage
37+
coverage.xml
3738
.tox
3839
nosetests.xml
3940

@@ -51,3 +52,4 @@ docsite/build/html
5152
docsite/build/doctrees
5253
bitmathenv3
5354
bitmathenv2
55+
bitmath2

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at timbielawa@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at bitmath@lnx.cx. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2014 Tim Bielawa <timbielawa@gmail.com>
3+
Copyright © 2014-2026 Tim Case (fmr. tbielawa) <bitmath@lnx.cx>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)