Skip to content

Squashed commit of the following: #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 1.0.{build}
version: 1.1.{build}
branches:
only:
- master
- stable
skip_tags: true
max_jobs: 1
image:
- Visual Studio 2017
- Visual Studio 2015
- Visual Studio 2022
- Visual Studio 2019
clone_depth: 50
init:
- cmd: >-
Expand Down
29 changes: 19 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1
- image: circleci/python:3.7
- image: circleci/python:3.8
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -41,9 +44,12 @@ jobs:

test:
docker:
- image: circleci/python:3.6.1
- image: circleci/python:3.7
- image: circleci/python:3.8
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
parallelism: 2
environment:
CI: cicleci
Expand Down Expand Up @@ -88,9 +94,12 @@ jobs:

pytest:
docker:
- image: circleci/python:3.6.1
- image: circleci/python:3.7
- image: circleci/python:3.8
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
parallelism: 2
environment:
CI: cicleci
Expand Down Expand Up @@ -147,7 +156,7 @@ jobs:

lint:
docker:
- image: circleci/python:3.6.1
- image: cimg/python:3.11
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
Expand Down
37 changes: 32 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
codecov:
notify:
wait_for_ci: true
require_ci_to_pass: true
comment:
behavior: default
layout: reach, diff, flags, files, footer
require_base: false
require_changes: false
require_head: true
show_carryforward_flags: false
coverage:
precision: 3
round: nearest
status:
changes: false
default_rules:
flag_coverage_not_uploaded_behavior: include
patch: true
project:
default: on
default:
target: 95%
base: auto
branches:
- master
- stable
if_ci_failed: ignore
only_pulls: false
removed_code_behavior: adjust_base
tests:
target: 80%
flags: tests
if_ci_failed: failure
only_pulls: false
removed_code_behavior: fully_covered_patch
flags:
- tests
paths:
- tests

github_checks:
annotations: true
flags:
tests:
paths:
- tests
joined: false
- tests
3 changes: 1 addition & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include = pythonrepo*,tests*
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

except Exception
except BaseException:
# Don't complain if tests don't hit defensive assertion code:
Expand All @@ -19,7 +18,7 @@ exclude_lines =
except OSError

# Don't complain if non-runnable code isn't run:
if __name__ in '__main__':
if __name__ in '__main__':

ignore_errors = True

43 changes: 43 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version = 1

test_patterns = [
"tests/**,",
"tests/*.py",
".circleci/**",
"testcases/**"
]

exclude_patterns = [
"__pycache__/",
"*.pyc",
"*$py.class",
"*~",
"htmlcov/",
".tox/",
".coverage",
".coverage.*",
".cache",
"nosetests.xml",
"coverage.xml",
".coveralls.yml",
"codecov_env",
"*,cover",
".hypothesis/",
"docs/conf.py"
]

[[analyzers]]
name = "python"
enabled = true
dependency_file_paths = [
"requirements.txt",
"setup.py"
]

[analyzers.meta]
runtime_version = "3.x.x"
max_line_length = 100

[[analyzers]]
name = "test-coverage"
enabled = true
2 changes: 1 addition & 1 deletion .flake8.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = W191,W391
ignore = W191,W391,E117
max-line-length = 100
exclude =
# No need to traverse our git directory
Expand Down
76 changes: 76 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct for Python Template

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Unethical, malicious, or other 'Black-hat' hacking activity that harms the
overall security of the project
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at <ADMIN EMAIL>. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and 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.

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.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
Loading