Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Maint: Update project configuration and add zenodo and mailman configs#158

Merged
samaloney merged 8 commits into
TCDSolar:mainfrom
samaloney:maint-project-config
Apr 4, 2025
Merged

Maint: Update project configuration and add zenodo and mailman configs#158
samaloney merged 8 commits into
TCDSolar:mainfrom
samaloney:maint-project-config

Conversation

@samaloney

@samaloney samaloney commented Apr 1, 2025

Copy link
Copy Markdown
Member
  • Move inforamtion from setup.cfg to project.toml, .isort.cfg, pytest.ini etc and remove setup.cfg and slim down setup.py
  • Update build and version settings
  • Add .zenodo.json
  • Add .mailmap

* Move config from setup.cfg to individual config files for each tool (isort, ruff, pytest, etc)
* Add zenodo and mailmap config files
@codecov

codecov Bot commented Apr 1, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 33.33333% with 14 lines in your changes missing coverage. Please review.

Project coverage is 75.42%. Comparing base (f6b4a88) to head (a0d8a5f).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
stixpy/product/sources/quicklook.py 0.00% 5 Missing ⚠️
stixpy/_dev/scm_version.py 50.00% 3 Missing ⚠️
stixpy/product/sources/housekeeping.py 0.00% 2 Missing ⚠️
stixpy/product/sources/science.py 33.33% 2 Missing ⚠️
stixpy/calibration/transmission.py 0.00% 1 Missing ⚠️
stixpy/timeseries/quicklook.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
- Coverage   75.50%   75.42%   -0.09%     
==========================================
  Files          32       33       +1     
  Lines        2111     2116       +5     
==========================================
+ Hits         1594     1596       +2     
- Misses        517      520       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samaloney samaloney force-pushed the maint-project-config branch from 0ea997e to 1f43937 Compare April 1, 2025 23:55
Comment thread stixpy/net/client.py
Comment on lines 226 to 227
("L1", "STIX: Engineering and UTC time conversion ."),
("ANC", "STIX: Ancillary Data like aspect."),
("L2", "STIX: Calibrated data."),
("ANC", "STIX: Ancillary data."),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicHoch I think the ANC level attr was in twice so I removed it but that seem to change a few of the test by 1 which I have assumed was an extra entry for the second ANC

@samaloney samaloney changed the title Maint project config Maint: Update project configuration and add zenodo and mailman configs Apr 2, 2025
@samaloney samaloney requested a review from Copilot April 2, 2025 09:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the project’s configuration by migrating settings from setup.cfg to project.toml and related files, updates versioning and build settings, and adds new config files (.zenodo.json and .mailmap).

  • Migrate configuration to pyproject.toml and other dedicated config files
  • Update build backend and dependency versions
  • Remove legacy setup.py and cleanup configuration files

Reviewed Changes

Copilot reviewed 20 out of 28 changed files in this pull request and generated no comments.

Show a summary per file
File Description
stixpy/net/client.py Clean up duplicate and concatenated string definitions
stixpy/coordinates/transforms.py Simplify warning message string concatenation
stixpy/calibration/transmission.py Refine error message formatting in value checks
stixpy/calibration/tests/test_energy.py Remove string concatenation artifacts in test data
stixpy/calibration/compression.py Standardize f-string formatting for error messages
stixpy/_dev/scm_version.py Introduce SCM version handling for development installations
stixpy/init.py Update version import for clarity
setup.py Remove obsolete setup script
ruff.toml Adjust linting rules by removing PT004 and updating exclusions
pyproject.toml Update dependency versions and project metadata
.pre-commit-config.yaml Update pre-commit hook revisions and exclusions
Files not reviewed (8)
  • .codespellrc: Language not supported
  • .coveragerc: Language not supported
  • .isort.cfg: Language not supported
  • .mailmap: Language not supported
  • .zenodo.json: Language not supported
  • changelog/158.trivial.rst: Language not supported
  • pytest.ini: Language not supported
  • setup.cfg: Language not supported
Comments suppressed due to low confidence (1)

pyproject.toml:10

  • The project name 'stixypy' appears inconsistent with the module naming in 'stixpy'. Please verify the intended project name for consistency.
name = "stixypy"

@samaloney samaloney merged commit bb3913c into TCDSolar:main Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants