Skip to content
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

DevOps: Move the source directory into src/ #812

Merged
merged 1 commit into from
May 6, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/validate_release_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ def get_version_from_module(content: str) -> str:
args = parser.parse_args()
assert args.GITHUB_REF.startswith('refs/tags/v'), f'GITHUB_REF should start with "refs/tags/v": {args.GITHUB_REF}'
tag_version = args.GITHUB_REF[11:]
package_version = get_version_from_module(Path('aiida_quantumespresso/__init__.py').read_text(encoding='utf-8'))
package_version = get_version_from_module(Path('src/aiida_quantumespresso/__init__.py').read_text(encoding='utf-8'))
error_message = f'The tag version `{tag_version}` is different from the package version `{package_version}`'
assert tag_version == package_version, error_message
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ repos:
args: ['-i']
exclude: &exclude_files >
(?x)^(
aiida_quantumespresso/calculations/pwimmigrant.*|
aiida_quantumespresso/parsers/.*|
src/aiida_quantumespresso/calculations/pwimmigrant.*|
src/aiida_quantumespresso/parsers/.*|
docs/.*|
tests/.*(?<!\.py)$
)$
Expand Down